Skip to content
Code ReadingRemove the Threes
Break the Code

Remove the Threes

Write a list for which this function gives the wrong answer.
1def without_threes(values):
2 for v in values:
3 if v == 3:
4 values.remove(v)
5 return values