Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 170 Bytes
>>> countries = ['usa', 'russia', 'china']
>>> capitals = ['washington', 'moscow', 'beijing']
>>> ind_chi = countries.index('china')
>>> print(capitals[ind_chi])
beijing