title: AttributeError: 'builtin_function_or_method' object has no attribute 'csv'
body: <p>i can't read csv file in my function!! </p>
  
  <pre><code>  def calculate_averages(input_file_name, output_file_name):
  with (open(input_file_name,'r')) as fin:
      reader=csv.reader(fin)
          for row in reader:
          name=row[0]
          grades=list()
          for grade in row[1:]:
              grades.append(float(grade))
              with open(output_file_name,'w') as f:
               for item in grades:
  
                f.write("%s\n" % item)
  
  f.close()
  return f
  </code></pre>
  
  <p>and when calling my function:</p>
  
  <pre><code> calculate_averages(input.csv ,output.csv)
  </code></pre>
  
  <p>i have this error:</p>
  
  <pre><code> calculate_averages(input.csv ,output.csv)AttributeError: 'builtin_function_or_method' object has no attribute 'csv'
  </code></pre>
  
  <p>but i had created input.csv file and output.csv file!!!
  what am i doing wrong??</p>