Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Código está mal otimizado, mas funciona!
- numero_mes = input('Qual o numero do mês: ')
- mês = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"]
- numero = ['1' ,'2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
- if numero_mes == "1":
- print("Janeiro")
- if numero_mes == "2":
- print("Fevereiro")
- if numero_mes == "3":
- print("Março")
- if numero_mes == "4":
- print("Abril")
- if numero_mes == "5":
- print("Maio")
- if numero_mes == "6":
- print("Junho")
- if numero_mes == "7":
- print("Julho")
- if numero_mes == "8":
- print("Agosto")
- if numero_mes == "9":
- print("Setembro")
- if numero_mes == "10":
- print("Outubro")
- if numero_mes == "11":
- print("Novembro")
- if numero_mes == "12":
- print("Dezembro")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement