Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = input()
- line_counter = 1
- my_dict = {}
- while command != "stop":
- current_cmd = command
- if line_counter % 2 != 0:
- resource = current_cmd
- else:
- quantity = current_cmd
- line_counter += 1
- my_dict[resource] = quantity
- command = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement