The following shows the input and output of one run of the divide code above whe
ID: 3546663 • Letter: T
Question
The following shows the input and output of one run of the divide code above where I typed in some values for the input. For this run of the code, describe the order in which python ran the program by listing the line numbers of the lines of code in the order they were executed, starting with line 1.
Enter the numerator: abc
That wasn't a number!
I am the finally block
Enter the numerator: 100
Enter the denominator: abc
That wasn't a number!
I am the finally block
Enter the numerator: 50
Enter the denominator: 0
I am the finally block
An exception occured
integer division or modulo by zero
Press enter to exit
Explanation / Answer
if the "I am the finally block" is of no use.....Then python ran the program n the same way given
Because when abc is given as the numerator, it showed that its not a number.....
then when 100 is accepted as numerator and abc is given as denominator error occurred
//ar in the last case when both are valid and denominator is 0..