Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started