Advertisement
ABIX_Edukacja

Untitled

Nov 18th, 2020
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. for u in range(5):
  2.     print(f"Halo u= {u}")
  3.     print("AAAA")
  4.     print("----")
  5.  
  6. l = [ 0, 1.45 , True, 3, "a", 4, 5, 6, 7 ]
  7.  
  8. for u in l:
  9.     print(f"Wartość to {u}, a typ to {type(u)}")
  10.  
  11. print("--------------------------")
  12.  
  13. for u in enumerate(l):
  14.     print(f"Wartość to {u}, a typ to {type(u)}")
  15.  
  16. print("--------------------------")
  17.  
  18. for i, u in enumerate(l):
  19.     print(f"Indeks {i} - wartość to {u}, a typ to {type(u)}")
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement