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, you
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
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
