Week 6 - Exploring more Python Lists attributes

  1. isinstance(variablename, variabletype)
  2. Joining or repeating lists (using + or * operators)
  3. I learnt more list attributes -
    • count: number of times elements appear in list
    • insert: Insert items into a list
    • del: delete a specific List index
    • pop: gets and deletes item in list
    • remove: delete a specific object from a list
    • reverse: to reverse the order of a list
    • sort: shuffle items in list
  4. List index
  5. An empty list [ ] is False
Read More