Problem 1
Simple Message: Store a message in a variable, and then print that message.
Problem 2
Simple Messages: Store a message in a variable, and print that message. Then change the value of your variable to a new message, and print the new message. Save each of the following exercises as a separate file with a name like name_cases.py. If you get stuck, take a break or see the suggestions in Appendix C.
Problem 3
Personal Message: Store a person鈥檚 name in a variable, and print a message to that person. Your message should be simple, such as, 鈥淗ello Eric, would you like to learn some Python today?鈥
Problem 4
Name Cases: Store a person鈥檚 name in a variable, and then print that person鈥檚 name in lowercase, uppercase, and titlecase.
Problem 5
Famous Quote: Find a quote from a famous person you admire. Print the quote and the name of its author. Your output should look something like the following, including the quotation marks: Albert Einstein once said, 鈥淎 person who never made a mistake never tried anything new.鈥
Problem 8
Number Eight: Write addition, subtraction, multiplication, and division operations that each result in the number 8. Be sure to enclose your operations in print statements to see the results. You should create four lines that look like this: print(5 + 3) Your output should simply be four lines with the number 8 appearing once on each line.
Problem 9
Favorite Number: Store your favorite number in a variable. Then, using that variable, create a message that reveals your favorite number. Print that message.
Problem 10
Adding Comments: Choose two of the programs you鈥檝e written, and add at least one comment to each. If you don鈥檛 have anything specific to write because your programs are too simple at this point, just add your name and the current date at the top of each program file. Then write one sentence describing what the program does.
Problem 11
Zen of Python: Enter import this into a Python terminal session and skim through the additional principles.