Skip to content

Commit dbc07b5

Browse files
authored
Update python.md
1 parent 5953417 commit dbc07b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ print(mylist[-1]) # prints Samsung
9999
|lst.pop(`[index]`)→value| remove & return item at index|
100100
|lst.sort()| sort the given list items|
101101
|lst.reverse() |reverse the given list items|
102+
|lst.count() |Returns the number of elements with the specified value|
103+
|lst.clear() |Removes all the elements from the list|
104+
|lst.index() |Returns the index of the first element with the specified value|
105+
|lst.copy() |Returns a copy of the list|
102106

103107
### 2. Tuple
104108

0 commit comments

Comments
 (0)