I\'m new and I have no idea where the default directory for the open() function is.
For example open(\'whereisthisdirectory.txt\',\'r\')
The open() function for file always creates files in the current working directory. The best way to find out your current working directory is to find three lines of small code:
import os
current_working_directory = os.getcwd()
print(current_working_directory)
Run this above code and you will get your current working directory where open() function creates a new file. Good Luck!