Question: This is for an intro to python class: Write a program with a function called retrieve_integer. This function should ask the user for a number.
This is for an intro to python class:
Write a program with a function called retrieve_integer. This function should ask the user for a number. If they enter a non-integer, your function should print "Uh oh!". However, the exception should not stop there; it should continue to wherever your function was called! (Consider using the word raise by itself here.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
