Grouping Objects with Python Lists - Going Beyond an Initial Python Script
Grouping Objects with Python Lists
Part of the lecture series "Going Beyond an Initial Python Script":
https://nickderobertis.github.io/fin-model-course/lectures/4-going-beyond-an-initial-python-script
Full Course Website:
https://nickderobertis.github.io/fin-model-course/
Notes
--------
- Lists are one of the basic container data types in Python. They hold other objects so we can work with them as a group
- Lists hold objects one by one in order and objects can be looked up from the list using the numeric index of the object
- It is a very common pattern to create an empty list, then go through some logic in a loop to create the object you want in the list and add it in each run of the loop
- This numeric index is zero-based, so look up the first object by 0, the second object by 1, and so on.
- We can pass a slice to get a group of objects out of the list as a new list or a single integer to get a single object out of the list
- Negative numbers means count from the end of the list, -1 is last object, -2 is second to last object, and so on
- Objects can be added to the list when it is created, but also later on using .append and .insert. Objects can be removed using .pop
- Lab exercise 1 tests list building for loop pattern, 2 tests adding objects to lists, and 3 tests list indexing and slicing
Resources
------------
- Python Basics: https://nickderobertis.github.io/fin-model-course/_static/Examples/Introduction/Python/Python%20Basics.ipynb
- Python Basics Lab Exercises: https://nickderobertis.github.io/fin-model-course/_static/Materials%20for%20Lab%20Exercises/Python%20Basics/Python%20Basics%20Lab.ipynb
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Grouping Objects with Python Lists - Going Beyond an Initial Python Script», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.