RUVIDEO
Поделитесь видео 🙏

#3: Python List for beginners

📁 Обучение 👁️ 19 📅 02.12.2023

#Python #PythonList #PythonArray #ListsinPython #PythonGuide

Hello everyone,
In today's video, we will look into the lists in Python. A list in Python is similar to an Array in other programming languages with a difference that a list in Python could hold data of different data types.

List index in Python
================
An item or an element in a list is uniquely identified by its position in the list which is also called the index of the item in the list. The index starts from 0 and goes till the length of the list minus 1.

Accessing a Python list item using its index
===================================
The first item in the list can be accessed using the syntax list_name[0] where list_name is the name of the list and [0] is the index of the first item in the list. Similarly, we can access the last item in the list using the syntax: list_name[-1] where [-1] means the first item from the end of the list.

Various Python list operations and examples in this video
==============================================
Throughout this video, we will see the various operations that we could perform on a list. We will see how to add an item to the list, how to remove an item from a list using the name of the item, using the index of the item, etc.

We will also see how to delete an item from the list and how to merge two different lists to form a new list. There are several other simple examples that we will go through.

Python List Homework
==================
Today's homework is to create three lists:
1. A list with the name of the months ( e.g - Jan, Feb ..... Dec)
2. A list with number of the months (e.g - 1, 2, 3 .....12)
3. A final list that is created with the merged data from list 1 and list 2 above

Print the final list on your screen and the output should be the same as displayed in the video.
Once you are done with the coding, you can comment below with the code that you tried and also let me know if you face any trouble getting the code to work on your machine.

Thanks for watching and if you enjoyed watching this video, then please like, comment, share it with your friends and also Subscribe to this channel to get notified when I upload the next video in the Python for beginners series.

More Information
==============
My YouTube Channel: https://www.youtube.com/user/ances2009
Watch other videos in the getting started with Python playlist: https://www.youtube.com/playlist?list=PLxaeSsH93IC9KB3__AovZ_9r1VPsYJ9ff

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «#3: Python List for beginners», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.