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
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