Photo by Aaron Burden on Unsplash

How to Write Files in Python

Konstantinos Patronas
Python in Plain English
2 min readJul 14, 2022

--

Python like many other languages has built-in functions to write files, to write a file we need first to open a file.

>>> with open("t1.txt") as…

--

--