You are viewing a single comment's thread. Return to all comments →
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.