+ 2
Not able to do the practice 23.2 in python beginner can someone explain me plz
Need help
7 ответов
+ 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")
+ 1
This question looks like it has a bug in it
0
I think it's wrong. It says 1900 is not leap year... 1900 is a leap year!!!
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")
- 1
Look like an explaination is missing to do it
- 3
Just do it all by yourself!
- 3
Even without explainations, you have to do it all by yourself!