how to add space between inputs in a text file python code example Example: how to add space between inputs in a text file python f.write(name) f.write(" ") f.write(score)