I would like to know how I could check to see if a file exist based on user input and if it does not, then i would like to create one.
so I would have something like:
file_name = input('what is the file name? ')
then I would like to check to see if file name exist.
If file name does exist, open file to write or read, if file name does not exist, create the file based on user input.
I know the very basic about files but not how to use user input to check or create a file.