num = 4
lst = [1, 6, 8, 4, 3, 5, 4, 1, 3]
for i in range(0, len(lst)):
    if lst[i] == num:
        del lst[i]
        break
new_lst = lst

d231dd77225721f3f8a2bbc5c72eef81aa5a207f
<mask token>

<mask token>
for i in range(0, len(lst)):
    if lst[i] == num:
        del lst[i]
        break
<mask token>

num = 4
lst = [1, 6, 8, 4, 3, 5, 4, 1, 3]
for i in range(0, len(lst)):
    if lst[i] == num:
        del lst[i]
        break
new_lst = lst
