Advertisement
KaySawbridge

Leap Year

Aug 1st, 2020
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. #Leap year program
  2. dob = int(input("What year were you born in?: "))
  3. remainder = dob%4
  4. if remainder == 0:
  5.     print ("You were born in a leap year")
  6. else:
  7.     print ("You were not born in a leap year")
  8. print ("Thank you for taking part")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement