@valoro/

bisiesto_1

Python

https://altocodigo.blogspot.com/2018/08/anos-bisiestos-en-python.html

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.023023555007607444","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZGVmIGJpc2llc3RvKHgpOgogIGlmIHglND09MCBhbmQgKG5vdCh4JTEwMD09MCkgb3IgeCU0MDA9PTAgKToKICAgIHRleHRvPSdlcyBiaXNpZXN0by4nCiAgZWxzZToKICAgIHRleHRvPSdlcyB1biBhw7FvIE5PIGJpc2llc3RvLicKICByZXR1cm4gdGV4dG8KeD1pbnQoaW5wdXQoJ0ludHJvZHV6Y2EgdW4gYcOxbyBlbnRyZSAxNjAwIHkgMjUwMDonKSkKcHJpbnQoeCxiaXNpZXN0byh4KSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
def bisiesto(x):
  if x%4==0 and (not(x%100==0) or x%400==0 ):
    texto='es bisiesto.'
  else:
    texto='es un año NO bisiesto.'
  return texto
x=int(input('Introduzca un año entre 1600 y 2500:'))
print(x,bisiesto(x))