Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> def teste(nome, idade):
- ... print nome, idade
- ...
- >>> teste('andrews', 26)
- andrews 26
- >>> teste(nome='andrews', idade=26)
- andrews 26
- >>> lista = ['pacote', 200]
- >>> teste(*lista)
- pacote 200
- >>> dicionario = {'nome': 'sargento', 'idade': 134}
- >>> teste(**dicionario)
- sargento 134
- >>>
Add Comment
Please, Sign In to add comment