Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g = ['styczen', 'luty', 'marzec', 'kwiecien', 'maj'] # to jest wpisane w programie
- x = [1, 2, 3, 4, 5]
- f = {}
- print(g)
- i = 0
- print('Przychody za rok 2018')
- # a to jakby tworzy słownik, gdzie wartość idzie z inputa.
- while i < 4:
- a = {}
- a[g[i]] = str(input('wartosc'))
- i = i + 1
- y = {}
- y = a
- y[g[i]] = str(input('wartosc'))
- i = i + 1
- z = {}
- z = y
- z[g[i]] = str(input('wartosc'))
- i = i + 1
- j = {}
- j = z
- j[g[i]] = str(input('wartosc'))
- i = i + 1
- print(j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement