name = input("What is your name")
myFile = open(name, 'score.txt', 'wt')
myFile.write('score: 6')
myFile.close()
As you can see this program creates a ".txt" file where it is saved, what I want to know is if I can name the file a name, for example Sam inputs his name I want the file to save itself as "Sam score.txt" with the score 6 inside it, is this possible. Thanks. - P.S kinda new so don't really know if this is correct thanks.