Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. def get_numero(mes):
  2. if(mes == "ENE"):
  3. return 1
  4. elif(mes == "FEB"):
  5. return 2
  6. elif(mes == "MAR"):
  7. return 3
  8. elif(mes == "ABR"):
  9. return 4
  10. elif(mes == "MAY"):
  11. return 5
  12. elif(mes == "JUN"):
  13. return 6
  14. elif(mes == "JUL"):
  15. return 7
  16. elif(mes == "AGO"):
  17. return 8
  18. elif(mes == "SET"):
  19. return 9
  20. elif(mes == "OCT"):
  21. return 10
  22. elif(mes == "NOV"):
  23. return 11
  24. elif(mes == "DEC"):
  25. return 12
  26. inpt = input("")
  27. fecha = inpt.split("-")
  28. dia = int(fecha[0])
  29. mes = get_numero(fecha[1])
  30. anno = int(fecha[2])
  31. l = []
  32. l.append(dia)
  33. l.append(mes)
  34. l.append(anno)
  35. tp = tuple(l)
  36. print(tp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement