You are viewing a single comment's thread. Return to all comments →
the first if statement
this will give true for 1900 year also but that it is not true
you have to give the constraint like
if year in range(1900,pow(10,5)+1):
because they clearly mentioned this constraintr
I thought the constraints meant that you could write your code assuming the constraints to be true - that no test cases would include inputs that don't satisfy the constraints.
that is true