you don't want empty file. in normal business case if the file does not exists, you would inform user the file does not exists, then advise user to add some movies first before being able to read from the fileFILENAME = "movies.csv"
and no, this
I'm afraid that you show some lack of basic knowledge - you should revisit this topic
and no, this
FILENAME = "movies.csv"just craete a variable FILENAME, that points to str object 'movies.csv', or in simple terms variable FILENAME has value 'movies.csv' which is string. No I/O operations whatsoever.
I'm afraid that you show some lack of basic knowledge - you should revisit this topic
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs