- 1

I m not getting the code right in else statement about a leap year,can anyone give the code plz?

17th Feb 2021, 11:55 AM
Gayathri Uppada
5 Answers
+ 5
Gayathri Uppada Sorry I can't do it since I'm not a pro user. Wait a bit. I think I have to modify it more. Btw, did you notice that you posted the same question in 4 times? Please try to avoid posting duplicate questions here. Thanks! https://www.sololearn.com/discuss/2699384/?ref=app https://www.sololearn.com/discuss/2699475/?ref=app https://www.sololearn.com/discuss/2699490/?ref=app
17th Feb 2021, 2:09 PM
Simba
Simba - avatar
0
year = int(input()) if year%4==0: if year%100==0: if year%400==0: print("Leap year") else: print("Not a leap year")
17th Feb 2021, 12:17 PM
Gayathri Uppada
0
Here is my code
17th Feb 2021, 12:20 PM
Gayathri Uppada
0
Still showing bugs when aftr run the code
17th Feb 2021, 12:56 PM
Gayathri Uppada
0
Can u go to else statement lesson to run the program ,so u can understand my problm
17th Feb 2021, 2:07 PM
Gayathri Uppada