+ 2

Not able to do the practice 23.2 in python beginner can someone explain me plz

Need help

6th Mar 2021, 4:55 AM
Anthony Garceau
Anthony Garceau - avatar
7 odpowiedzi
+ 2
I am not sure why my code below is incorrect: year = int(input()) #your code goes here if year%4 == 0 and year%100 == 0 and year%400 == 0: print('Leap year') else: print ("Not a leap year")
15th Apr 2021, 7:45 PM
Alex
+ 1
This question looks like it has a bug in it
24th Mar 2021, 8:51 PM
Alan Wright
Alan Wright - avatar
0
I think it's wrong. It says 1900 is not leap year... 1900 is a leap year!!!
20th Mar 2021, 6:49 PM
Jordan Coffey
Jordan Coffey - avatar
0
Answer for all Green is: if year % 4 > 0: print ("Not a leap year") else: if year % 100 > 0: print ("Leap year") else: if year % 400 > 0: print ("Not a leap year") else: print ("Leap year")
10th Jun 2021, 10:50 AM
Rostislav Kuscenko
Rostislav Kuscenko - avatar
- 1
Look like an explaination is missing to do it
6th Mar 2021, 5:01 AM
Anthony Garceau
Anthony Garceau - avatar
- 3
Just do it all by yourself!
6th Mar 2021, 4:57 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
- 3
Even without explainations, you have to do it all by yourself!
6th Mar 2021, 5:01 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar