Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dias = ["segunda","terca","quarta","quinta","sexta","sabado","domingo"]
- def diassemana ( dia_s) :
- if int(dia_s) in range(1,7) :
- print(dias[int(dia_s)-1])
- else :
- print("Introduza um dia da semana valido!")
- dia = input('Introduza o dia da semana: ')
- diassemana (dia)
- return;
- dia = input('Introduza o dia da semana: ')
- diassemana (dia)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement