Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 484 Bytes
>>> world = {'spain':'madrid', 'france':'paris',
... 'germany':'bonn', 'norway':'oslo',
... 'italy':'rome', 'poland':'warsaw',
... 'australia':'vienna' }
>>> for key, value in world.items():
... print("the capital of " + str(key) + " is " + str(value))
...
the capital of spain is madrid
the capital of france is paris
the capital of germany is bonn
the capital of norway is oslo
the capital of italy is rome
the capital of poland is warsaw
the capital of australia is vienna