This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kkshitish
Recipients Kkshitish
Date 2021-01-15.08:32:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610699538.98.0.545500481144.issue42933@roundup.psfhosted.org>
In-reply-to
Content
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 is not execute on program. But still it print else statement. 

This is not ideal output. If you are disagree with me. So, kindly provide very strong argument over this.
History
Date User Action Args
2021-01-15 08:32:19Kkshitishsetrecipients: + Kkshitish
2021-01-15 08:32:18Kkshitishsetmessageid: <1610699538.98.0.545500481144.issue42933@roundup.psfhosted.org>
2021-01-15 08:32:18Kkshitishlinkissue42933 messages
2021-01-15 08:32:18Kkshitishcreate