Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The first part will gather the year inputed
- yearDivide = 4
- print("Hello, I am here to help you today")
- year = float(input("Please the year that you wish to see if is a leap year: ")
- #This part will set up the calculation
- if year % yearDivide == 4:
- print("The year is a leap year.")
- elif year % yearDivide > 4:
- print("The year is not a leap year.")
- elif year % yearDivide < 4:
- print("The year is not a leap year.")
- else:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement