Lesson 06: Coding Exercise

Do the following:

  1. Create an object that is a list.
  2. Add the name Tom to the list as a string with the append function.
  3. Print off the list, then remove the name Tom, then print off the list again.
  4. Add the integer 1 to the list 4 times
  5. Use the count function to see how many times 1 appears in the list.
  6. Print off the length of the list.
  7. Use the join function to join together all items in the list with a space between each item

If you get stuck, check out Lesson 06: Cheat Sheet.