Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- 0. <--- This should be removed
- 2: ff
- 4: zzzz
- 1.
- 2: ff
- 4: zzzz
- def draw_rows(dictionary):
- turn_list = list(dictionary.keys())
- turn_list.sort()
- for num in turn_list:
- if num < 1:
- turn_list.pop(turn_list[num])
- for key in turn_list:
- print(key,": ", dictionary[key] * key, sep="")
- def test_draw_rows():
- print("1.")
- draw_rows({4: 'a', 2: 'f', 0: 'x', 4: 'z', -3: 'z'})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement