extend() method in Python List

It is a method in list that adds iterable elements (string, list, tuple etc.) to the end of the list. It modifies the current list. It doesn’t return a value. Syntax: list.extend(iterable_element) Don’t know what is count method in python? Read: count() method in Python List Example 1: Output: [‘Name’, ‘codewindow’, ‘Country’, ‘India’, ‘english’, ‘hindi’] […]

extend() method in Python List Read More »