Question: Question 2 : ask _ int 2 Write a function called ask _ int 2 ( prompt ) that works the same as ask _

Question 2: ask_int2
Write a function called ask_int2(prompt) that works the same as ask_int1, but when the user is asked to re-type an answer it
prints the more helpful "Sorry ..." message shown in the example:How old are you? ten
Sorry, I don't know what int "ten" is. Please try again.
How old are you? 3.4
Sorry, I don't know what int "3.4" is. Please try again.
How old are you? 20
20
Make the "Sorry ..." message exactly the same as in the examples.
 Question 2: ask_int2 Write a function called ask_int2(prompt) that works the

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!