Advertisement
HBSB

3.4 lists

Mar 4th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #I'm going to follow RaspPi's instructions for once.  
  2. #It makes it easier to understand the process.
  3.  
  4. names = ["martin", "laura", "hitesh", "caitlyn", "renee"]
  5.  
  6. names[1]
  7. names[4]
  8.  
  9. names.append("lauren")
  10. names
  11. names.insert(2,"dan")
  12. names
  13. names.remove("martin")
  14. names
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement