Let's say if I have to own dates 1924-126 I wanted to print a specific value if it's 1-2 years apart and so on so forth
ill assume you wanted to print the difference btw 2 inputs, whcih are... years input1 = 1924 input2 = 1926 ect = abs(input1 - input2) if ect <= 2: # if the diff btw input1 and input2 is within 2 print('the diff within 2 years') else: print('the diff more than 2 years')