py-repo

a python playground
Index Commits Files Refs README
lists.py (244B)
   1 
   2 myList = ["Martin", 21, True]
   3 
   4 names = ["Veronica" , "Martin", "Malena", "Paula"]
   5 ages = [23, 21, 19, 16]
   6 
   7 print(myList[1])
   8 
   9 print(names)
  10 print(names[-1])
  11 print(names[2:])
  12 print(names[1:2])
  13 
  14 print(ages)
  15 
  16 myList [0] = "Javier"
  17 print(myList)
  18 
  19 
  20