Ok so, I have this bit of code
points = 25
points += 5
After the python code runs out or the program ends the points do not save and revert to the start 25 points how can I make it so that the points update and save in the new value.
Ok so, I have this bit of code
points = 25
points += 5
After the python code runs out or the program ends the points do not save and revert to the start 25 points how can I make it so that the points update and save in the new value.
Use the static data type to save the value, even after execution is complete.
Read this, https://www.studytonight.com/python/python-static-keyword