Skip to content

Instantly share code, notes, and snippets.

@ramalho
Created Jul 27, 2020
Embed
What would you like to do?
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