Загрузка...

Python Lesson 8: Lists #shorts

📄 Full written solution: https://timepasshub2539-hue.github.io/leetcode-python/python-lesson-08-lists.html
💻 Code on GitHub: https://github.com/timepasshub2539-hue/leetcode-python/tree/main/python-lesson-08-lists

Chapters:
0:00 Python Lesson 8: Lists
0:19 What is a list?
0:40 Indexing: grab one item
1:09 Slicing: grab a chunk
1:33 Lists can hold anything
1:59 Lists are mutable
2:19 Adding items
2:42 Removing items
3:04 Handy list methods
3:24 Mistake: the copy trap
3:50 Mistake: index out of range
4:13 List vs tuple
4:41 Recap

In Lesson 8 you'll learn what Python lists are and why they're ordered, how zero-based and negative indexing work, and how to slice out any chunk you want. We mutate lists by adding and removing items, tour the handy built-in list methods, and fix the two mistakes that trip everyone up: index out of range and copy-vs-reference. Finish with a clear list-vs-tuple breakdown and a quick recap.
Perfect if you're learning Python from scratch and want lists to finally click.
#Python #LearnPython #PythonForBeginners #Coding #PythonLists

Watch next:
- Python Basics: Variables, Loops, Lists & Functions Explained Simply: https://youtu.be/VnyBhaHk1bA
- Find Greatest Common Divisor of Array — LeetCode Daily Python Solution (the trick nobody sees): https://youtu.be/brzex76x6rU
- Sorted GCD Pair Queries — LeetCode Daily Python Solution (5 Billion Pairs, No List): https://youtu.be/JVLzC_apwYQ

Видео Python Lesson 8: Lists #shorts канала Fun with Learning Technology
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять