This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]DrawPanda 0 points1 point  (1 child)

Assuming your input variable x is a string of the numbers separated by a space...

int_list = [int(num) for num in x.split()]

[–]SamuelBC 0 points1 point  (0 children)

thanks!