myDataStore = open("myDataStore.txt", "r") #Creating a "txt" file so we can save our variables. point = int(myDataStore.read()) #Getting the value of our variable, "0" right now. point += 1 #Earning Points with open("myDataStore.txt", "w") as myDataStore: #Opening our "txt" file again as myDataStore and deleting the old txt file so we can overwrite our new Value myDataStore.write(str(point)) #Saving our Value in the "txt" file myDataStore.close #Closing the "txt" file