Question: Input - 6 2 7 4 seven - 2 1 0 endnumbers = [ 2 , 4 , 5 , 8 ] user input =
Inputsevenendnumbers user input input while userinput end':try:#Possiole ValueErrordivisor int userinputif divisor :#Possible NameError compute is not definedresult compute resultelif divisor s :#Possible IndexEenorreault numbers divisorelse:#Possible ZeroDivisionErrorresult divisorprint result end except ValueError ZeroDivisionError :print r end except NameError IndexError: print s enduser input input print OK
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
