- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Common method for list and tuple in python in hindi #6
In the Last video we had covered the Data types , in this video I have explained the common methods/functions for list and tuple data types .
Differences between List and Tuple
List are group of same/multiple data types ,int, string, boolean ,like we can use list for
storing different type of data at once .
List are mutable means we can add or update element in the list.
Use case - we should use list in that case where the data can be changed like for storing
users with all details.
Tuple can also be used for storing different data types at once but the key difference
between Tuple and list is ,tuple is immutable means we can not add/update any element in
the tuples.
Use case - we should use the tuple in such cases where data can not be changed like for
storing the lat/long values
Common Methods for List
* append() - add a value at the end of the list
* insert() - add a value at a specific position
* count() - number of element for a specific word /number
* len() - returns the total number of element
* pop() - remove last element
* remove() - remove specific element by value
For Tuples
* len() - returns the total number of element in the tuple
* Access tuple element - same way as we can access the list element with [0] (square bracket
with index)
* Function like append(), insert() , pop(), remove() not supported in the tuple as we can't change
the element in the tuple
tuple and list in python
difference between tuple and list in python
tuple and list in python in hindi
add new element in list
remove a element from list
Please Like ,Share and Subscribed my channel @TechReignsWithSandeep
Checkout the full playlist for PHP https://www.youtube.com/@TechReignsWithSandeep/playlists
Видео Common method for list and tuple in python in hindi #6 канала Tech Reigns With Sandeep
Differences between List and Tuple
List are group of same/multiple data types ,int, string, boolean ,like we can use list for
storing different type of data at once .
List are mutable means we can add or update element in the list.
Use case - we should use list in that case where the data can be changed like for storing
users with all details.
Tuple can also be used for storing different data types at once but the key difference
between Tuple and list is ,tuple is immutable means we can not add/update any element in
the tuples.
Use case - we should use the tuple in such cases where data can not be changed like for
storing the lat/long values
Common Methods for List
* append() - add a value at the end of the list
* insert() - add a value at a specific position
* count() - number of element for a specific word /number
* len() - returns the total number of element
* pop() - remove last element
* remove() - remove specific element by value
For Tuples
* len() - returns the total number of element in the tuple
* Access tuple element - same way as we can access the list element with [0] (square bracket
with index)
* Function like append(), insert() , pop(), remove() not supported in the tuple as we can't change
the element in the tuple
tuple and list in python
difference between tuple and list in python
tuple and list in python in hindi
add new element in list
remove a element from list
Please Like ,Share and Subscribed my channel @TechReignsWithSandeep
Checkout the full playlist for PHP https://www.youtube.com/@TechReignsWithSandeep/playlists
Видео Common method for list and tuple in python in hindi #6 канала Tech Reigns With Sandeep
Комментарии отсутствуют
Информация о видео
11 января 2025 г. 15:48:27
00:14:07
Другие видео канала




















