Advertisement
horozov86

Capitals

Mar 20th, 2023
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. country_names = input().split(", ")
  2. capital_names = input().split(", ")
  3.  
  4. dictionary = {country_names[i]: capital_names[i] for i in range(0, len(country_names))}
  5.  
  6. for country, capital in dictionary.items():
  7.     print(f"{country} -> {capital}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement