Advertisement
JkSoftware

Day 3 - Challenge Leap Year Calculator

Nov 5th, 2021
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #  Don't change the code below
  2. year = int(input("Which year do you want to check? "))
  3. #  Don't change the code above
  4.  
  5. #Write your code below this line 👇
  6.  
  7. a = year / 4
  8. b = year / 100
  9. c = year / 400
  10.  
  11. if a != float:
  12.     if b != float:
  13.         if c != float:
  14.             print("Leap Year")
  15. else:
  16.     print("Not Leap")
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement