For what I have understand till now is, computer will try to run the code in try section and will except stuff mentioned in except part. As soon as computer got something as mentioned in except it will run except code.
So, I tried the following:
try:
if year // 100:
print year, "is not a leap year"
else:
print year, "is not a leap year"
except year // 400 and year // 4:
print "is a leap year"
This does not work.
I want to know why it is so?