Advertisement
Dimitar_Borisov

02. A Miner Task

Jul 3rd, 2025
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. command = input()
  2. line_counter = 1
  3. my_dict = {}
  4.  
  5. while command != "stop":
  6.     current_cmd = command
  7.     if line_counter % 2 != 0:
  8.         resource = current_cmd
  9.  
  10.     else:
  11.         quantity = current_cmd
  12.     line_counter += 1
  13.     my_dict[resource] = quantity
  14.    
  15.     command = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement