I\'ve been presented with the task of turning a string of mixed numbers (\"1 3 5 8 10\"), for example, and my goal is to put these numbers into a list as integers.
I ha
You're using wrong array for iteration and also doing some wrong conversions:
def iq_test(numbers): print(numbers) nums = [] for number in numbers.split(" "): nums.append(int(number)) print(nums)