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

<string name>.lower()
#examples
str = 'HELLO WORLD'
str2 = "PassWoRD is 123"

print(str.lower())
print(str2.lower())

#output
hello world
password is 123
Advertisements