-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Errors and exceptions assignments:
- Handle the exception thrown by the code below by using try and except blocks.
eg: for i in ['a','b','c']:
print(i**2) - Handle the exception thrown by the code below by using try and except blocks. Then use a finally block to print 'All done'
eg: x=5, y=0
z=x/y - Write a function that asks for an integer and prints the square of it. use a while loop with a try,except,else block to account for incorrect inputs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels