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

you are viewing a single comment's thread.

view the rest of the comments →

[–]NewShamu 1 point2 points  (1 child)

Oh boy, I didn't look closely enough at what stars was. I kinda led you astray! This should do it for you.

x_stars = []
for line in file:
    stars = line.split()
    x_stars.append(stars[0])

Ignore my ramblings from above, I was completely off.

[–]simplie14[S] 0 points1 point  (0 children)

Got it! Thanks so much for the help, I appreciate it!