Friday, 6 March 2015

FILE MAKING!

file = open("newfile.doc", "w")
file.write("Hamish\t10B1\t666\n")
file.write("Will\t10D1\t666\n")
file.write("Cameron\t10D2\t666\n")
file.write("Marty\t10S1\t666\n")
file.write("George\t10P1\t666\n")
file.close()

No comments:

Post a Comment