To change the case of a string in Python, you can use the upper()
and lower()
methods. Here's the code:
main.py295 chars10 lines
The upper()
method converts the string to uppercase, while the lower()
method converts it to lowercase.
gistlibby LogSnag