Guest User

Untitled

a guest
Jun 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from datetime import *
  2. def checkIfSaving():
  3. today = datetime.date.today()
  4. alreadyStored = False
  5. in_file = open("checktime.txt", "rt") ; contents = in_file.read() ;ct = contents
  6. f=open('checktime.txt','rt');
  7. if contents != today:
  8. addMoney() ; alreadyStored = True
  9. f.write(today) ; f.close()
Add Comment
Please, Sign In to add comment