teslariu

sdf

Aug 28th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. lista = [1,2,3,4,5]
  5. dicc = {'brown': 'marron', 'black': 'negro', 'white': 'blanco'}
  6. nombres =  ["Juan", "Tito"]
  7.  
  8. for numero in lista:
  9.     print(numero)
  10.    
  11. for caracter in "Hola a todos":
  12.     print(caracter)
  13.    
  14. for nombre in nombres:
  15.     print(nombre)
  16.    
  17. for k,v in dicc.items():
  18.     print(k,v)
  19.    
  20. for numero in range(100,-1,-10):  # range(vi, tope, salto)
  21.     print(numero)
  22.  
Add Comment
Please, Sign In to add comment