Question: Write a Python program called readinom 122. that keeps reading lines from it until one of them is a number For each line that is

 Write a Python program called readinom 122. that keeps reading lines

Write a Python program called readinom 122. that keeps reading lines from it until one of them is a number For each line that is not a number the program says so. As soon as the program reads a number it should say thank you and exit, Make sure you use exception handling to achieve the desired program behaviour. For example: S cat rumstdin 00 022.txt F number 33 44 python read_022.py redestin00_022.txt is not a ne is not a number (is not a number is not a number CIN not number dis not a number 2311 inot number FF s not number umber is not a number Thank you for

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!