title: Average of characters and average of words per line in a file w/o using .split()
body: <pre><code>with open('File123.txt','r') as f:
      lines = f.readlines()
  
      print(sum(len(line) for line in lines)/len(lines))
  
  f.close()
  </code></pre>
  
  <p>How I can calculate the average number of characters per line and average number of words per line? My current code only does one of them. I can't use the function split() to do this. I'm at a lost and need some assistance.</p>