List in PYTHON - Methods of class LIST | Part - 3 | Lecture - 32

Опубликовано: 06 Январь 2021
на канале: Go-Mind
12
3

Hey viewers,
In this video, we will see 3 methods of class LIST in PYTHON. These methods are index(), count() and insert().
• The index() method returns the position at the first occurrence of the specified value.
• The count() method returns the number of times the specified element appears in the list.
• the insert() method inserts an element to the list at the specified index.

Task:
x = [12, 23, 34, 45, 56]

x.insert(-1, 32)
x.insert(100, 100)

y = [1, 2]

x.insert(2, y)


Смотрите видео List in PYTHON - Methods of class LIST | Part - 3 | Lecture - 32 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Go-Mind 06 Январь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 12 раз и оно понравилось 3 посетителям.