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
I presume that all you are wanting is simple string concatenation:
def storescores(): hs = open("hst.txt","a") hs.write(name + " ") hs.close()
Alternatively, change the " " to "\n" for a newline.