x in it, and leave the list it was given as it was. Its first line is missing, marked ____.
def without(v, x):
____
out.remove(x)
return out
data = [1, 2, 1]
print(without(data, 1), data)
Which line fills the gap so that the output is exactly [2, 1] [1, 2, 1]?Log in to join the discussion.
Loading…