Advertisement
Andrey_06

Untitled

Feb 8th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. some_dict = {"Bulgaria": "Sofia", "Italy": "Rome", "The Netherlands": "Amsterdam"}
  2.  
  3. for key, value in some_dict.items():
  4.     print(f"{key}: {value}")
  5.  
  6. some_dict["Bulgaria"] = "Plovdiv"
  7. some_dict["Greece"] = "Athens"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement