Beginning Python

dict_loop.py
capitals = {
    "France": "Paris",
    "United Kingdom": "London",
    "USA": "Washington DC",
    "Kenya": "Nairobi"
}

for country, capital in capitals.items():
    print("The capital of", country, "is", capital)
$
python dict_loop.py
The capital of France is Paris
The capital of United Kingdom is London
The capital of USA is Washington DC
The capital of Kenya is Nairobi