f = open("d:/py/3/1.txt", "w+")f.write("This is my first project")# for index in range(10): # f.write(str(index) + " ")f.close()