Advertisement
pacho_the_python

Capitals

Mar 14th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. countries = input().split(", ")
  2. capitals = input().split(", ")
  3.  
  4. countries_capitals = dict(zip(countries, capitals))
  5.  
  6. for country in countries_capitals:
  7.     print(f"{country} -> {countries_capitals[country]}")
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement