Adding Elements to a List in Python

preview_player
Показать описание
Python Programming: Adding Elements to a List in Python
Topics discussed:
1. Adding Elements to a List in Python.
2. append() Method.
3. insert() Method.
4. extend() Method.

Music:
Axol x Alex Skrindo - You [NCS Release]

#PythonByNeso #PythonProgramming #ListsInPython
Рекомендации по теме
Комментарии
Автор

Concatenation is also same as extend () method

meenakshirathore-ht
Автор

my_list = [[1, 2, 3], ['a', 'b''], 5, 6]
list2 = ['E', 'R']
my_list[1].extend(list2)
print(my_list)

OUTPUT:
[[1, 2, 3], ['a', 'b', 'E', 'R'], 5, 6]

captaintariq
Автор

wowwww what a explaination, Thnak you sir

PradeepKumarPathak-ov
Автор

Crystals clear explanation sir thank you so much sir

BukkarajuUsharani
Автор

Wonderfully explained...you just earned a subscriber 🎉🎉🎉

FelixOkolie_thenewsblogger