full_list = [1, 2, 3, "four", "five", "six"]
empty_list = []
for numbers in full_list:
if type(numbers) == int:
empty_list.append(numbers)
full_list.remove(numbers)
print(full_list)
print(empty_list)
When I run the program, it gives the following output:
[2, 'four', 'five', 'six'] [1, 3]