_str = "Hello World!" print(_str.upper()) # HELLO, WORLD! print(_str.lower()) # hello, world! print(_str.swapcase()) # hELLO wORLD!
a = "Hello, World!" print(a.upper()) #Output: HELLO, WORLD! print(a.lower()) ##Output: hello, world!