In this video, we go over two data structures in python, lists and tuples.
Lists are a mutable structure. This means that you can dynamically change the size and contents of the list. We have several different functions to do this. I cover in this video append, pop, remove, insert, and a few others.
Tuples, on the other hand, are an immutable data type. This means that once you create a tuple object, that tuple object and those values inside do not change. When you make changes to a tuple you'll actually be creating a new tuple.
Indexing works the same in lists and tuples.
Leave a comment and let me know how python is going for you guys and girls!
SUBSCRIBE to not miss any future tutorials
Link to list/tuple documentation:
if you have any questions about anything covered, leave a comment down below.
PYTHON TUTORIAL SERIES:
Why Learn Python? +Setup: https://youtu.be/RJL6Y761TNE
1. Math & Variables: https://youtu.be/XM0CtrJYM2A
2. Conditional Statements (if, elif, else): https://youtu.be/vsVGPcfxEiA
3. Functions: https://youtu.be/5U95tRdYySA
4. Lists & Tuples: https://youtu.be/_zFI6ytHHdY
5. For Loops & While Loops: https://youtu.be/WPF5M_Ic6Fc
Learn to Program a game: https://youtu.be/-8n91btt5d8