Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('ingrese numero de dia')
- dia=int(input())
- semana1=["LUNES","MARTES","MIERCOLES","JUEVES","VIERNES","SABADO","DOMINGO"]
- print('ingrese numero de mes')
- mes=int(input())
- meses=["ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"]
- print('ingrese Año')
- año=int(input())
- if (0<=dia<=6 and 0<=mes<=11 and 1900<=año<=2050):
- print("Hoy es",semana1[dia],dia,meses[mes-1],"del año",año)
- elif (7<=dia<=13 and 0<=mes<=11 and 1900<=año<=2050):
- print("Hoy es", semana1[dia-7],dia,meses[mes-1],"del año",año)
- elif (14<=dia<=20 and 0<=mes<=11 and 1900<=año<=2050):
- print("Hoy es",semana1[dia-14],dia,meses[mes-1],"del año",año)
- elif (21<=dia<=27 and 0<=mes<=11 and 1900<=año<=2050):
- print("Hoy es", semana1[dia-21],dia ,meses[mes-1],"del año",año)
- elif (28<=dia<=30 and 0<=mes<=11 and 1900<=año<=2050):
- print("Hoy es", semana1[dia-28],dia,meses[mes-1],"del año",año)
- else:
- print('no es una fecha correcta')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement