Question: data = 1 0 0 try: data = dat a 0 except ZeroDivisionError: print ( ' Cannot divide by 0 ' , end = '

data =100
try:
data =data0
except ZeroDivisionError:
print ('Cannot divide by 0', end ='')
else:
print('Division successful ', end ='')
try:
data =data5
except:
print('Inside except block ', end ='')
else:
print('Yes', end ='')
What is the output of the code above?
 data =100 try: data =data0 except ZeroDivisionError: print ('Cannot divide by

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!