Question: Write a Python program that keeps reading in names and ages from the user, until the user enters 0. Once the user enters 0,

Write a Python program that keeps reading in names and ages from

Write a Python program that keeps reading in names and ages from the user, until the user enters 0. Once the user enters 0, you should print out all the information that was entered by the user. Use this case to test your program: Input: John 61 Marcel 17 Daisy 25 Samantha 52 Nelson 71 Deborah 46 0 Output: John 61 Marcel 17 Daisy 25 Samantha 52 Nelson 71 Deborah 46 Use two arrays to hold the names and the ages. Once the user enters 0, stop reading in data, and start printing out all the data in the two arrays in the same order that they were entered.

Step by Step Solution

3.28 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the Python program that reads names and ages from the user until the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!