Python Training Program Session 13 (Part 1) || Advanced Built-in Data Types || Tuples смотреть онлайн
Hello Everyone! Today in this video I am going to explain Advanced Built-in Data Types in which we learn about Tuples and its operations.
✻ I really hope you find this video useful.
Tuples :
A tuple is a collection which is ordered and unchangeable.
In Python tuples are written with round brackets ().
Access Tuple Items :
You can access tuple items by referring to the index number, inside square brackets.
Negative Indexing :
Negative indexing means beginning from the end, -1 refers to the last item, -2 refers to the second last item etc.
Range of Indexes :
You can specify a range of indexes by specifying where to start and where to end the range.
When specifying a range, the return value will be a new tuple with the specified items.
Remember that the first item has index 0.
Change Tuple Values :
Once a tuple is created, you cannot change its values. Tuples are unchangeable, or immutable as it also is called.
But there is a workaround. You can convert the tuple into a list, change the list, and convert the list back into a tuple.
Tuple Length :
To determine how many items a tuple has, use the len() method.
Add Items :
Once a tuple is created, you cannot add items to it. Tuples are unchangeable. But we discussed in the video about the methods to add items.
Create Tuple With One Item :
To create a tuple with only one item, you have to add a comma after the item, otherwise Python will not recognize it as a tuple.
Remove Items :
You cannot remove items in a tuple.
Tuples are unchangeable, so you cannot remove items from it, but you can delete the tuple completely.
Join Two Tuples :
To join two or more tuples you can use the + operator.
The tuple() Constructor :
It is also possible to use the tuple() constructor to make a tuple.
Converting Between Lists and Tuples :
You can use the built-in list() function to convert a tuple to a list, and the built-in tuple() function to convert a list to a tuple.
#Python #PythonTraining #JupyterNotebook #PythonForBeginners #TrainingProgram #Learning #Tuples #DataTypes
---------------------------------------------------------------------------
THANK YOU so much for watching!
Please make sure to LIKE and SHARE the video and SUBSCRIBE to the channel for more such videos :)
---------------------------------------------------------------------------
CONNECT WITH ME ON:
✻ LinkedIn: https://www.linkedin.com/in/sunidhi-pandey-96008b192/
✻ GitHub: https://github.com/sunidhi2001
✻ YouTube channel: https://www.youtube.com/channel/UCypX76paWuY76JC0rtbG61w
✻ Instagram : https://www.instagram.com/20sunidhi/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python Training Program Session 13 (Part 1) || Advanced Built-in Data Types || Tuples» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.