Advertisement
ph4x35ccb

for in dicionario

Feb 2nd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. #! /user/bin/env/python
  2. #coding: UTF-8
  3.  
  4. exemplo = {1:'teste',2:'teste2',3:'teste3'}
  5. for chave,valor in exemplo.items():
  6.     print(f"ID:{chave}={valor}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement