Created
July 27, 2020 23:07
-
-
Save ramalho/31f636ebf49ddee4145d6b490f271cf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pessoas = [ | |
{'nome': 'Ana', 'peso': 65.2}, | |
{'nome': 'Juca', 'peso': 89.1}, | |
{'nome': 'Carla', 'peso': 58.3} | |
] | |
for pessoa in pessoas: | |
nome = pessoa['nome'] | |
peso = pessoa['peso'] | |
print(f'{nome:10} {peso:.1f}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment