I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
upper and lower

Enter the code into geany and save it as a new file. Remember to end your filename with .py.

For each line, use either upper() or lower() based on the comment. The first two have been done.

word1 = "house"
word2 = "MOUSE"
word3 = "shout"
word4 = "monkey"
word5 = "FeEt"
word6 = "HAIRY"
print(word1.upper())
print(word2.lower())
print(word3) # make upper case
print(word4) # make upper case
print(word5) # make lower case
print(word6) # make lower case


[python_submit]

Comments are closed.

Information