Question: Python: Two ages are read from input into variables age 1 and age 2 . Then, two names are read from input into variables name

Python: Two ages are read from input into variables age1 and age2. Then, two names are read from input into variables name1 and name2. Create a list named ages_list to hold age1 and age2, and create a list named names_list to hold name1 and name2.
Ex: If the input is:
30
75
Mai
Kim
then the output is:
[30,75]
['Mai', 'Kim']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!