Question: Design the function get _ num that takes two arguments: an integer that represents a minimum value and a string to use as a prompt
Design the function getnum that takes two arguments: an integer that represents a minimum value and a string to use as a prompt for the user. The function should repeatedly ask the user with the given prompt to enter a number until the user enters a valid integer greater than or equal to the given minimum. The function should return the valid entry as an integer.
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
