You create a file in Python by opening it with the 'w' mode in open() function. If the file doesn't exist, Python will create it. with open('new_file.txt', 'w') as ...