Advertisement
Guest User

Untitled

a guest
Sep 15th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #The first part will gather the year inputed
  2. yearDivide = 4
  3. print("Hello, I am here to help you today")
  4. year = float(input("Please the year that you wish to see if is a leap year: ")
  5.  
  6. #This part will set up the calculation
  7. if year % yearDivide == 4
  8.     print("The year is a leap year.")
  9. elif year % yearDivide > 4
  10.     print("The year is not a leap year.")
  11. elif year % yearDivide < 4
  12.     print("The year is not a leap year.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement