Lists

  1. Anything can be a list
  2. Any layout
  3. Lists
  4. List slice with steps
  5. Change a List
  6. Change with steps
  7. List assignment and list copy
  8. Shallow vs. Deep copy of lists
  9. join
  10. join list of numbers
  11. split
  12. for loop on lists
  13. in list
  14. Where is the element in the list
  15. Index improved
  16. [].insert
  17. [].append
  18. [].remove
  19. Remove element by index [].pop
  20. Remove first element of list
  21. Remove several elements of list by index
  22. Use list as a queue
  23. Queue using deque from collections
  24. Fixed size queue
  25. List as a stack
  26. stack with deque
  27. Exercies: Queue
  28. Exercise: Stack
  29. Exercise: MasterMind
  30. Solution: Queue with list
  31. Solution: Queue with deque
  32. Solution: Reverse Polish calculator (stack) with lists
  33. Solution: Reverse Polish calculator (stack) with deque
  34. Solution: MasterMind
  35. MasterMind to debug
  36. Debugging Queue
  37. sort
  38. sort numbers
  39. sort mixed
  40. key sort
  41. sort with sorted
  42. sort vs. sorted
  43. key sort with sorted
  44. Sorting characters of a string
  45. range
  46. Looping over index
  47. Enumerate lists
  48. List operators
  49. List of lists
  50. List assignment
  51. List documentation
  52. tuple
  53. Sort tuples
  54. Exercise: color selector menu
  55. Exercise: count digits
  56. Exercise: Create list
  57. Exercise: Count words
  58. Exercise: Check if number is prime
  59. Exercise: DNA sequencing
  60. Solution: menu
  61. Solution: count digits
  62. Solution: Create list
  63. Solution: Count words
  64. Solution: Check if number is prime
  65. Solution: DNA sequencing
  66. Solution: DNA sequencing with filter
  67. Solution: DNA sequencing with filter and lambda
  68. [].extend
  69. append vs. extend
  70. split and extend