Ответсообщение недоступно
numbers = [1, 3, 6, 4, 1, 2]
values = range(1,20)
x = []
for items in values:
if items not in numbers:
missing_values = items
x.append(missing_values)
x = x + numbers
x.sort()
print(x)
—————————-
i can try to help you
as i see you should combine numbers and x list.
to combine them i used -> x = x + numbers
if you don't want script to print everytime when it appends an item to "list x" you should write it out of loop. I wrote it out of loop.
and if you want to sort them you can use "x.sort()" function
Then it's ready to print i think