def Upper_case(name):
name.upper()
return name
x=Upper_case('hello')
print(x)
Asked
Active
Viewed 128 times
-2

wwii
- 23,232
- 7
- 37
- 77

geetansh pardhi
- 11
- 2
-
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 Answers
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