How to print output of the python script into a text file i am new to sys module | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How to print output of the python script into a text file i am new to sys module

4th Sep 2018, 10:15 AM
Ashraf ali
Ashraf ali - avatar
2 Antworten
+ 5
print('Hello World', file=your_file)
4th Sep 2018, 10:39 AM
Mert Yazıcı
Mert Yazıcı - avatar
4th Sep 2018, 10:29 AM
Paul
Paul - avatar