Skip to content

Instantly share code, notes, and snippets.

@ramalho
Created July 27, 2020 23:07
Show Gist options
  • Save ramalho/31f636ebf49ddee4145d6b490f271cf6 to your computer and use it in GitHub Desktop.
Save ramalho/31f636ebf49ddee4145d6b490f271cf6 to your computer and use it in GitHub Desktop.
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