63 066
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #3384 in Python for mukunda

Question #3384
Create a text file by using writelines() function?
Expert's answer
fout = open ("textfile.txt", "w")
fout.writelines([(str(x) + "\n") for x in range(10)])
fout.close()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions