title: How can I save an input value so I can retrieve it next time I run the code (Python)?
body: <p>Is there an easy way for me to store user input data so next time I run the program, it considers the previous value assigned to a variable?</p>
  <p>I want to create a program to add 1 absence every time I don't attend a class. However, I don't know how to store that data. Ex.: I added 1 absence, and next time I run the code and add another, I want the program to retrieve 2 and not 1.</p>
  <pre><code>absence = None
  userinput = input(&quot;add absence:&quot;)
  userinput = int(userinput)
  if absence == None:
     absence = userinput
  else:
     absence = absence+userinput
  print(absence)
  </code></pre>