# Example 2-9
# Named tuples

from collections import namedtuple

City = namedtuple('City', 'name coordinates')

tokyo = City('Tokyo', (35.689, 139.691))

print(tokyo)
print(tokyo.name)
print(tokyo.coordinates)
f7fd271750ea1129bdc254946de4af791f07f4f7
<mask token>

<mask token>
print(tokyo)
print(tokyo.name)
print(tokyo.coordinates)

<mask token>
City = namedtuple('City', 'name coordinates')
tokyo = City('Tokyo', (35.689, 139.691))
print(tokyo)
print(tokyo.name)
print(tokyo.coordinates)

from collections import namedtuple
City = namedtuple('City', 'name coordinates')
tokyo = City('Tokyo', (35.689, 139.691))
print(tokyo)
print(tokyo.name)
print(tokyo.coordinates)

# Example 2-9
# Named tuples

from collections import namedtuple

City = namedtuple('City', 'name coordinates')

tokyo = City('Tokyo', (35.689, 139.691))

print(tokyo)
print(tokyo.name)
print(tokyo.coordinates)