Advertisement
Kotecka

Untitled

Nov 13th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. miesiace=[ 'styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień',]
  2. m = input('Podaj numer miesiąca:')
  3. if int(m) == 1:
  4.     print(miesiace[0])
  5. elif int(m) == 2:
  6.     print(miesiace[1])
  7. elif int(m) == 3:
  8.     print(miesiace[2])
  9. elif int(m) == 4:
  10.     print(miesiace[3])
  11. elif int(m) == 5:
  12.     print(miesiace[4])
  13. elif int(m) == 6:
  14.     print(miesiace[5])
  15. elif int(m) == 7:
  16.     print(miesiace[6])
  17. elif int(m) == 8:
  18.     print(miesiace[7])
  19. elif int(m) == 9:
  20.     print(miesiace[8])
  21. elif int(m) == 10:
  22.     print(miesiace[9])
  23. elif int(m) == 11:
  24.     print(miesiace[10])
  25. else:
  26.     print(miesiace[11])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement