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. sorting with sorted
  43. sort vs. sorted
  44. Sorted and change - shallow copy
  45. Sorting characters of a string
  46. range
  47. Looping over index
  48. Enumerate lists
  49. List operators
  50. List of lists
  51. List assignment
  52. List documentation
  53. Exercise: color selector menu
  54. Exercise: count digits
  55. Exercise: Create list
  56. Exercise: Count words
  57. Exercise: Check if number is prime
  58. Exercise: DNA sequencing
  59. Solution: menu
  60. Solution: count digits
  61. Solution: Create list
  62. Solution: Count words
  63. Solution: Check if number is prime
  64. Solution: DNA sequencing
  65. Solution: DNA sequencing other
  66. Solution: DNA sequencing using replace
  67. Solution: DNA sequencing using regex
  68. Solution: DNA sequencing with filter
  69. Solution: DNA sequencing with filter and lambda
  70. [].extend
  71. append vs. extend
  72. split and extend