Question: Design the function print _ name _ age _ v 3 that does not take any arguments but prompts the user to enter their name

Design the function print_name_age_v3 that does not take any arguments but prompts the user to enter their name and then prompts them to enter a number for their age. It then prints hello followed by the name and the category of the age. If the user enters an invalid age (ie, letters, a number smaller than 0) it will continue to ask the user for a number until they enter a number that is a valid age.
Age categories are as described in version 1.
Note: Examples within your docstring can be omitted. Be sure to test your function from the shell!
TIP: Your function should call the get_num function

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 Programming Questions!