← Go Back

How to Create an Empty File

Using the open() built-in function:

open("new_empty_file.txt", "w").close()


files


🐍 You might also find interesting: