title: taking the ord() function from a string and returning the sum
body: <p>For this code I'm trying to add up the numerical codes that correspond to the letters of the string in ASCII and then return the number, however the error is </p>
  
  <pre><code>ord() expected a character, but string of length 8 found
  </code></pre>
  
  <p>but I thought I had already split the string to avoid this</p>
  
  <p>This is the code that doesn't work:</p>
  
  <pre><code>def checksum(string):
      words = string.split()
      for i in words:
          num = ord(i)[0] + ord(i)[1:]
      return num
  </code></pre>
  
  <p>For example if the string is 'hi' then the output should be 301</p>