sync with O'Reilly Atlas

This commit is contained in:
Luciano Ramalho
2021-07-07 23:45:54 -03:00
parent f0f160844d
commit 23e78eeb82
64 changed files with 2087 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
"""
metro_lat_long.py
metro_lat_lon.py
Demonstration of nested tuple unpacking::
@@ -7,16 +7,17 @@ Demonstration of nested tuple unpacking::
| latitude | longitude
Mexico City | 19.4333 | -99.1333
New York-Newark | 40.8086 | -74.0204
Sao Paulo | -23.5478 | -46.6358
São Paulo | -23.5478 | -46.6358
"""
# tag::MAIN[]
metro_areas = [
('Tokyo', 'JP', 36.933, (35.689722, 139.691667)), # <1>
('Delhi NCR', 'IN', 21.935, (28.613889, 77.208889)),
('Mexico City', 'MX', 20.142, (19.433333, -99.133333)),
('New York-Newark', 'US', 20.104, (40.808611, -74.020386)),
('Sao Paulo', 'BR', 19.649, (-23.547778, -46.635833)),
('São Paulo', 'BR', 19.649, (-23.547778, -46.635833)),
]
def main():
@@ -27,3 +28,4 @@ def main():
if __name__ == '__main__':
main()
# end::MAIN[]