Python Tutorial - append vs extend methods

Publicado el: 23 septiembre 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea Python Tutorial - append vs extend methods de Duración hora minuto segunda en buena calidad , que subió el usuario GEEK PEAK 23 septiembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 827 veces y le gustó 45 a los espectadores. Disfruta viendo!