What will be the correct output of the following Python code?
value = [2, 3, 4, 5, 6]
cd = 0
try:
cd = value[3]
except IndexError:
print('0', end = '') except: print('1', end = '') finally: print('0', end = '') cd = 10 try: cd = cd/0 except ZeroDivisionError: print('1', end = '') finally: print('0')
Correct Answer:
010
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions