Answers for "creaATE A FILE IN PYTHON AND Write"

3

python write to file

with open("test.txt",'w',encoding = 'utf-8') as f:
   f.write("my first filen")
   f.write("This filenn")
   f.write("contains three linesn")
Posted by: Guest on October-16-2020

Code answers related to "creaATE A FILE IN PYTHON AND Write"

Python Answers by Framework

Browse Popular Code Answers by Language