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 printnameagev 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 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
Note: Examples within your docstring can be omitted. Be sure to test your function from the shell!
TIP: Your function should call the getnum function
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
