Question: Write Python code that repeatedly prompts the user for two numbers and prints their ratio, halting when the user types anything other than two numbers.

Write Python code that repeatedly prompts the user for two
numbers and prints their ratio, halting when the user types
anything other than two numbers. If the second number is zero,
politely remind the user that you cannot divide by zero, but
continue to accept input. Use exception handling.
 Write Python code that repeatedly prompts the user for two numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure Heres how you could write the Python code to achieve this python def main while True try num1 i... View full answer

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!