MCQs > IT & Programming > Python > Analyse the given Python code and choose the correct output from the given options. pdata = 50 try: pdata = pdata/0 except ZeroDivisionError: print('0 ', end = '') else: print('1', end = '') try: pdata = pdata/5 except: print('1', end = '') else: print('0', end = '')

Python MCQs

Analyse the given Python code and choose the correct output from the given options.

pdata = 50

try:

pdata = pdata/0

except ZeroDivisionError:

print('0 ', end = '') else: print('1', end = '') try: pdata = pdata/5 except: print('1', end = '') else: print('0', end = '')

Answer

Correct Answer:


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it