Message385100
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. |
|
Date |
User |
Action |
Args |
2021-01-15 08:32:19 | Kkshitish | set | recipients:
+ Kkshitish |
2021-01-15 08:32:18 | Kkshitish | set | messageid: <1610699538.98.0.545500481144.issue42933@roundup.psfhosted.org> |
2021-01-15 08:32:18 | Kkshitish | link | issue42933 messages |
2021-01-15 08:32:18 | Kkshitish | create | |
|