07 May Friday Evening Python Homework 05.03.
Question 1:
Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file, each one on a separate line.
Question 2:
Write a program that asks the user to enter his/her favorite book and add the answer into the text file created in the Question 1, make sure it is added into a separate line.
Question 3:
Write a program to read all the information from the text file and print out the the information in one line.
example output:
Tony is 12 years old. His favorite color is blue, favorite food is pizza and favorite book is “Diary of a Wimpy Kid”.
Sorry, the comment form is closed at this time.