Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82f349b

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 parent91cea47 commit82f349b

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)# removethe first occurence ofitem with given value
1515
print("Removed 4: ",ar)
1616

1717
ar.reverse()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp