Python3 Upper Lower
# Filename : test.py# author by : www..com str = "www..com"print(str.upper()) # Convert all lowercase characters in the string to uppercaseprint(str.lower()) # Convert all uppercase characters in the string to lowercaseprint(str.capitalize()) # Convert the first character to uppercase and the rest to lowercasetitle() # Convert the first character of each word to uppercase and the rest to lowercase
Executing the above code produces the following output:
WWW..COM www..com Www..com Www..Com
[ Python3 Examples](#)
YouTip