Feb-28-2021, 01:23 AM
Not sure what you are asking, but will take a shot:
>>> str_of_numbers = input("Please enter numbers separated by spaces: ") Please enter numbers separated by spaces: 1 7 8 3 4 6 8 9 0 5 1 2 3 >>> list_of_numbers = [int(x) for x in str_of_numbers.split()] >>> list_of_numbers [1, 7, 8, 3, 4, 6, 8, 9, 0, 5, 1, 2, 3] >>>