Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def updatesc(sc):
- f = open("yes.txt")
- content = f.read()
- f.close()
- if content == "":
- f = open("yes.txt","w")
- f.write(str(sc))
- print("Thats ur first high score!")
- else:
- if int(sc) > int(content):
- f = open("yes.txt","w")
- f.write(str(sc))
- f.close()
- print("Updated!")
- a = input("Enter a number")
- updatesc(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement