title: Function throws a SyntaxError: (unicode error)
body: <p>I am running the following code in python and it's giving me this error:</p>
  
  <pre><code>SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
  </code></pre>
  
  <hr>
  
  <pre><code>def filePro(filename):
      f=open(filename,'r')
      wordcount=0
      for lines in f:
           f1=lines.split()
           wordcount=wordcount+len(f1)
      f.close()
      print ('word count:'), str(wordcount)
  </code></pre>
  
  <p>Please help me.</p>