0

Trying to solve leap year problem but this code is given me error. Please help..

year = int(input()) #your code goes here If (year % 4)!=0: print ("Not leap year")

3rd Sep 2021, 2:49 PM
Adebisi Olawale
Adebisi Olawale - avatar
4 ответов
+ 2
If you want quick solution, go to Code Playground and search using 'leap year' term. There will be loads of examples there for you to learn 👍
3rd Sep 2021, 2:54 PM
Ipang
+ 1
Search it on google, it has answers for every code that you hear from some Coder
3rd Sep 2021, 3:12 PM
<★Shaurya Chauhan★>
<★Shaurya Chauhan★> - avatar
0
well..if you are talking about an error. The error probably because you are using capital I in your if. it should be if year%4 != 0: not If year%4 != 0: and the parentheses is not really important
3rd Sep 2021, 3:05 PM
Shahrull Fytri
Shahrull Fytri - avatar
0
https://code.sololearn.com/ck3rfWaoVTQI some rough code that might help
3rd Sep 2021, 3:22 PM
Shahrull Fytri
Shahrull Fytri - avatar