mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -174,7 +174,7 @@ def cmp(a, b):
|
|||
#
|
||||
def remove(list, item):
|
||||
for i in range(len(list)):
|
||||
if list[i] = item:
|
||||
if list[i] == item:
|
||||
del list[i]
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue