TORONTO KIDS COMPUTER CLUB | Monday Online Python Homework 05.30.
16345
post-template-default,single,single-post,postid-16345,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Monday Online Python Homework 05.30.

03 Jun Monday Online Python Homework 05.30.

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”.

No Comments

Sorry, the comment form is closed at this time.