8000 updated comment for .remove() · reloadbrain/practice-python@82f349b · GitHub
[go: up one dir, main page]

Skip to content

Commit 82f349b

Browse files
authored
updated comment for .remove()
in case if there are multiple entries of the passed value, the .remove() method only removes the first occurrence of the passed value.
1 parent 91cea47 commit 82f349b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrays/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def array_test():
1111
print(ar)
1212
print("Index of 4: ", ar.index(4)) # index of given value
1313

14-
ar.remove(4) # remove item with given value
14+
ar.remove(4) # remove the first occurence of item with given value
1515
print("Removed 4: ", ar)
1616

1717
ar.reverse()

0 commit comments

Comments
 (0)
0