Question: 1 . Write a Python program which accepts a list named : randomList = [ ' a ' , 0 , 2 ] . Use
Write a Python program which accepts a list named : randomList a Use exception handling using trycatch which gives the output as:
Output
If the List element is a alphabet or string, the output will be The entry is a Oops! occurred. Next entry.
If the List element is the output will be The entry is Oops! occured. Next entry.
If the List element is and integer except then output will be The entry is The reciprocal of is reciprocal of an integer
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
