Python Arrays Flashcards
This refers to a data structure that can hold more than one value at a time.
Array
It is a collection or ordered series of items at the same time.
Array
It is used to identify the element in an array.
Index
The number of element present in the array.
Length
This function is used to find the length and return an integer that is equal to the number of elements present in that array.
len()
It is used to iterate over the times of an array specified number of times.
For loop
It iterates the elements until a certain condition is met.
While loop
This function is used when we want to remove an element and return it.
pop()
This function is used when we want to remove an element with a specific value without returning it.
remove()
It returns a range of elements that we have specified by the index number.
Slice (:)
This function is utilized to sort the elements of the array in ascending order.
sorted()
This function is used to add a single element at the end of an array.
append()
This function is used to add a more than one element at the end of an array.
extend()
This function is used to add an element at the specific position in an array.
insert()
This function is used to remove all the elements from the list.
clear()