title: Python: variable naming convention - file, path, filepath, file_path
body: <p>I would like to know the correct naming convention for the following variables in <strong>Python</strong> which I couldn't find one from <a href="https://google.github.io/styleguide/pyguide.html#Files_and_Sockets" rel="noreferrer"><strong>Google Style Guide</strong></a> and <a href="https://www.python.org/dev/peps/pep-0008/" rel="noreferrer"><strong>PEP8</strong></a></p>
  
  <p>(Let's say I have the following Python code)</p>
  
  <blockquote>
    <p>output_file = open(output_file_path, 'w')</p>
  </blockquote>
  
  <p>What would be the best variable name for the out file name?</p>
  
  <p>I believe the possible options for the variable name would be something like</p>
  
  <p><code>output_file</code> <code>outputfile</code> <code>outfile</code> <code>out_file</code> <code>outfile</code></p>
  
  <p>And the <strong>path</strong> variable can be something like</p>
  
  <p><code>output_file_path</code> <code>output_filepath</code> <code>output_path</code> <code>out_path</code> ...</p>