title: Python chr() function outputting incorrectly
body: <p>I am having problems with the chr() function. My code first takes the user input, puts it into an array and then uses the ord function to convert it to the corresponding number value and does the same with a keyword. It then uses the zip function to add both arrays together to get numbers and uses the chr function on it to put it back to text. The problem is that the chr function outputs incorrectly</p>
  <p>E.g</p>
  <p>the number value of c is 99</p>
  <p>the number valueof h is 104</p>
  <p>They add together to make 203</p>
  <p>my code outputs \xcb</p>
  <p>when I made a separate code that is just</p>
  <pre><code>leb = chr(203)
  print leb
  </code></pre>
  <p>That outputs 203 as Ë which is a singular character and what I need for decoding it</p>
  <p>Here is my code</p>
  <pre><code>num_string = raw_input(&quot;enter what you would like to encrypt&quot;)
  num_list = []
  for num in num_string:
      num_list.append(ord(num)) 
      print num_list
  
  key_string = raw_input(&quot;enter the keyword&quot;)
  key_list = []
  for key in key_string:
     key_string = key_list.append(ord(key)) 
     print key_list
  
  end_string = [x + y for x, y in zip(num_list, key_list)]
  end_list = []
  print end_string
  for end in end_string:
      end_list.append(chr(end)) 
  print end_list
  </code></pre>
  <p>When this is run this is the output</p>
  <blockquote>
  <p>enter what you would like to encrypt cat</p>
  <p>[99]</p>
  <p>[99, 97]</p>
  <p>[99, 97, 116]</p>
  <p>enter the keywordhat</p>
  <p>[104]</p>
  <p>[104, 97]</p>
  <p>[104, 97, 116]</p>
  <p>[203, 194, 232]</p>
  <p>['\xcb', '\xc2', '\xe8']</p>
  </blockquote>
  <p>Why is my code doing this and how do I fix this?</p>