-2
def Upper_case(name):
    name.upper()
    return name
    

x=Upper_case('hello')
print(x)
wwii
  • 23,232
  • 7
  • 37
  • 77
  • To format code select it and type ctrl-k, [Formatting help](https://stackoverflow.com/editing-help)... [Formatting sandbox](https://meta.stackexchange.com/questions/3122/formatting-sandbox) – wwii Jul 09 '22 at 02:59

1 Answers1

0

Even though you are calling name.upper() you are not storing it back in name. Use name = name.upper() instead.

Craze XD
  • 110
  • 8