# Users userlist = ("fonseca","caldwell","bird","nuber","massey","anthony","vick","pena","long","simpson","musick","deyoung") # Who are you? user = (raw_input('Enter username here:')) # and write the user is in the user tuplet.. text_file = None try: text_file=open('scores.txt','a') except: print "Could not open the score file.... retry later" sys.exit(1) text_file.write("Test '%s'#\n" % time.strftime("%a, %d %b %Y %H:%M:%S")) if user in userlist message="User: $%s " % str(user) else: message="user $%s does not exist... :(" % str(user) if user in userlist: open("scores.txt",'w').write(user) text_file.write(message+"\n") text_file.write("\n# END OF TEST RECORD #\n")