Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- miesiace=[ 'styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień',]
- m = input('Podaj numer miesiąca:')
- if int(m) == 1:
- print(miesiace[0])
- elif int(m) == 2:
- print(miesiace[1])
- elif int(m) == 3:
- print(miesiace[2])
- elif int(m) == 4:
- print(miesiace[3])
- elif int(m) == 5:
- print(miesiace[4])
- elif int(m) == 6:
- print(miesiace[5])
- elif int(m) == 7:
- print(miesiace[6])
- elif int(m) == 8:
- print(miesiace[7])
- elif int(m) == 9:
- print(miesiace[8])
- elif int(m) == 10:
- print(miesiace[9])
- elif int(m) == 11:
- print(miesiace[10])
- else:
- print(miesiace[11])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement