filmov
tv
List in Python Collections (Selenium Python - Session 97)

Показать описание
In this session, I have explained about below topics about List in Python Collections:
* List is one of the Collection Data Types
* Creating a list using square brackets
* Printing the list using print statement
* Accessing the individual elements of the list using their index
* Using for loop with list
* Updating the values in the list
* Finding the number of elements in the list using len() command
* Append the elements to the list
* Inserting the elements at the specific index position
* Remove elements from the list
* Using pop() for removing the last element in the list
* Using pop(index) for removing the element based on index
* clear() command for completely deleting the list
* reverse() command for reversing the list
* sort() command for sorting the list
* index() command for retrieving the index of given element in the list
* Accessing list inside another list - colors[1][1]