Python Tutorial - append vs extend methods

Опубликовано: 23 Сентябрь 2023
на канале: GEEK PEAK
827
45

In this Python Programming video tutorial you will learn the basic difference between append and extend methods in detail.
the append() method adds its entire argument as a single element to the end of the list. Even if you pass an iterable, like a list, it adds the whole thing as one element.
On the other hand, the extend() method behaves a bit differently. It treats strings as an iterable of characters and adds each character individually to the list.
#pythontutorial #pythonforbeginners #pythontips


На этой странице сайта вы можете посмотреть видео онлайн Python Tutorial - append vs extend methods длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь GEEK PEAK 23 Сентябрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 827 раз и оно понравилось 45 зрителям. Приятного просмотра!