SyntaxFix
Write A Post
Hire A Developer
Questions
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.