I started a Python code one week ago and it continues running now. The program finds some values and adds them to the list. Like this:
list = []
for i in range(len(ytun)):
a = x+5
list.add(a)
and end of the code the list element will be saved in txt file.
I realized it would be too long . My question is how can I stop it without losing the values I added to the list. I don't want to lose one week process. Thank you.