[issue42933] OUTPUT WRONG

2021-01-15 Thread Christian Heimes
Christian Heimes added the comment: "No" is the correct output for your code example. Your code does not raise an exception, therefore the else block is executed. Please don't use the bug tracker to get assistance with learning Python. There are community resources like chat and forums dedic

[issue42933] OUTPUT WRONG

2021-01-15 Thread Kkshitish
New submission from Kkshitish : try: a = 10 if a == 11: print ("Yes") except: print ("Out") else: print ("No") Output: No The output should be "Out" but it print "No", The else statement should be print when try condition is execute. But the try condition