Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. dic = {'1': 10, '2': 20, '3': 30}
  2. value1 = 25
  3.  
  4. result = {'1': 0, '2': 5, '3': 30}
  5.  
  6. value2 = 30
  7.  
  8. result2 = {'1': 0, '2': 0, '3': 5}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement