How you write strings in a text file, line by line, in python? | Sololearn: Learn to code for FREE!
0

How you write strings in a text file, line by line, in python?

I'm so confused about writing text files.

9th Oct 2020, 4:30 PM
Mohammad Hosein Nosrati
Mohammad Hosein Nosrati - avatar
1 Odpowiedź
0
Just open file in append mode ("a") and appending string one after one by using for loop
10th May 2021, 7:34 AM
Yash Wable 🇮🇳
Yash Wable 🇮🇳 - avatar