How to print output of the python script into a text file i am new to sys module | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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