I would like to know the correct naming convention for the following variables in Python which I couldn't find one from Google Style Guide and PEP8
(Let's say I have the following Python code)
output_file = open(output_file_path, 'w')
What would be the best variable name for the out file name?
I believe the possible options for the variable name would be something like
output_file outputfile outfile out_file outfile
And the path variable can be something like
output_file_path output_filepath output_path out_path ...
output_pathoroutput_filepathoutput_pathandout_path. The others feel long winded, especially if you have multiple variables that define different output paths. Though if you're editing someone's script then I'd say consistency is key to follow their conventions.