Lists

  1. Anything can be a list
  2. Any layout
  3. Access elements of a list
  4. List slice with steps
  5. Change a List
  6. Change sublist vs change element of a list
  7. Change with steps
  8. List assignment and list copy
  9. Shallow vs. Deep copy of lists
  10. join
  11. join list of numbers
  12. split
  13. for loop on lists
  14. in list
  15. Where is the element in the list
  16. Index improved
  17. [].insert
  18. [].append
  19. [].remove
  20. Remove element by index [].pop
  21. Remove first element of list
  22. Remove several elements of list by index
  23. Use list as a queue - FIFO
  24. Queue using deque from collections
  25. Fixed size queue
  26. List as a stack - LIFO
  27. stack with deque
  28. Exercies: Queue
  29. Exercise: Stack
  30. Exercise: MasterMind
  31. Solution: Queue with list
  32. Solution: Queue with deque
  33. Solution: Reverse Polish calculator (stack) with lists
  34. Solution: Reverse Polish calculator (stack) with deque
  35. Solution: MasterMind
  36. MasterMind to debug
  37. Debugging Queue
  38. sort
  39. sort numbers
  40. key sort of strings
  41. sort mixed values
  42. sort mixed values fixed with str
  43. sorting with sorted
  44. sort vs. sorted
  45. Sorted and change - shallow copy
  46. Sorting characters of a string
  47. range
  48. Looping over index
  49. Enumerate lists
  50. List operators
  51. List of lists
  52. List assignment
  53. List documentation
  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 other
  67. Solution: DNA sequencing using replace
  68. Solution: DNA sequencing using regex
  69. Solution: DNA sequencing with filter
  70. Solution: DNA sequencing with filter and lambda
  71. [].extend
  72. append vs. extend
  73. split and extend