← Go Back
How to Create an Empty File
Using theopen()
built-in function:open("new_empty_file.txt", "w").close()
🐍 You might also find interesting: