Question: Python: Make a .py file called Ex3_2. Then, write a program to prompt a user for a positive integer using input(). Be sure to make

Python:

Make a .py file called Ex3_2. Then, write a program to prompt a user for a positive integer using input(). Be sure to make sure the number is an int using int(). If the number is NOT an int, use try/except to tell the user to enter an int and get the input again. If the user fails to enter an int the SECOND time, gracefully exit (Goodbye User/Youre a jerk, user/etc)

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!