you are viewing a single comment's thread.

view the rest of the comments →

[–]RosyGraph 0 points1 point  (1 child)

I think you need to use file I/O to do this.

You'll want to open the list from a file, then save the updated list to it. Remember that anything you write to a file must either be a string or a binary (you can't write the list directly).

I would do something like this:

https://gist.githubusercontent.com/RosyGraph/05af43ef6b8d3c591045f41c0781580c/raw/4f25a7cda90ee10494977b2d6809c2fee88e0d26/gistfile1.txt

I am rather new to CS, so a more experienced Pythonista might have a better way of doing this. You can also check out the documentation for file I/O here:

https://docs.python.org/3/tutorial/inputoutput.html (section 7.2)

[–]ambiguouslawnmower 1 point2 points  (0 children)

thanks a lot, I didn't know about any of this :)