What is the syntax to see convert a string to uppercase?

<string name>.upper()
#examples
str = 'hello world'
str2 = "PassWoRD is 123"

print(str.upper())
print(str2.upper())

#output
HELLO WORLD
PASSWORD IS 123
Advertisements