Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_numero(mes):
- if(mes == "ENE"):
- return 1
- elif(mes == "FEB"):
- return 2
- elif(mes == "MAR"):
- return 3
- elif(mes == "ABR"):
- return 4
- elif(mes == "MAY"):
- return 5
- elif(mes == "JUN"):
- return 6
- elif(mes == "JUL"):
- return 7
- elif(mes == "AGO"):
- return 8
- elif(mes == "SET"):
- return 9
- elif(mes == "OCT"):
- return 10
- elif(mes == "NOV"):
- return 11
- elif(mes == "DEC"):
- return 12
- inpt = input("")
- fecha = inpt.split("-")
- dia = int(fecha[0])
- mes = get_numero(fecha[1])
- anno = int(fecha[2])
- l = []
- l.append(dia)
- l.append(mes)
- l.append(anno)
- tp = tuple(l)
- print(tp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement