How to print output of the python script into a text file i am new to sys module | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответов
+ 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