How to copy result into a text file using python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to copy result into a text file using python?

Hello, Trying to print to result in a text file. Unfortunately, I could only print the last line of the statement is copying to a text file. Here is the link of the code: https://code.sololearn.com/cZ5zFFagUzDl/#py I don't want to append the result because It will append to the previous lines whenever I execute

28th Oct 2020, 8:15 PM
perkins royal
perkins royal - avatar
2 Answers
+ 6
It sounds a bit confusing to me. I think it would help us to get a better understanding when you give some more details and may be you can show us what should happen to your text file. Thanks!
28th Oct 2020, 9:10 PM
Lothar
Lothar - avatar
+ 4
you can't interact with files on sololearns playground, the code runs on their servers not your machine
28th Oct 2020, 8:25 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar