sync with Atlas

This commit is contained in:
Luciano Ramalho
2021-07-10 11:58:24 -03:00
parent a77e6d1e97
commit 1283115921
8 changed files with 108 additions and 70 deletions

View File

@@ -23,8 +23,8 @@ metro_areas = [
def main():
print(f'{"":15} | {"latitude":>9} | {"longitude":>9}')
for record in metro_areas:
match record:
case [name, _, _, (lat, lon)] if lon <= 0:
match record: # <1>
case [name, _, _, (lat, lon)] if lon <= 0: # <2>
print(f'{name:15} | {lat:9.4f} | {lon:9.4f}')
# end::MAIN[]