Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # string_cases.py
- mystr = 'hello world'.upper()
- print mystr # HELLO WORLD
- mystr = mystr.lower()
- print mystr # hello world
- mystr = mystr.capitalize()
- print mystr # Hello world
- mystr = mystr.title()
- print mystr # Hello World
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement