My code looks like this:
def storescores(): hs = open(\"hst.txt\",\"a\") hs.write(name) hs.close()
so if I run it and enter \"Ry
You need to change parameter "a" => "a+". Follow this code bellows:
def storescores(): hs = open("hst.txt","a+")