+ 1

Me podrían ayudar con el problema de "El año bisiesto o no bisiesto" (Python for Beginners)

Este es el cĂłdigo que yo idee: year = int(input()) if (year%4) == 0: if (year%100) == 0: if (year%400) == 0: print("Leap year") else: print("Not a leap year")

25th Apr 2021, 3:41 PM
Kevin Huaripata
Kevin Huaripata - avatar
1 Answer
+ 4
year = int(input()) #your code goes here if year % 4==0: if year % 100 == 0: if year % 400 == 0: print ("Leap year") else: print ("Not a leap year") else: print ("Leap year") else: print ("Not a leap year")
26th Apr 2021, 2:07 AM
Simba
Simba - avatar