title: Conversion of string to upper case without inbuilt methods
body: <p>I am trying to perform conversion from a lowercase to uppercase on a string without using any inbuilt functions (other than ord() and char()). Following the logic presented on a different thread here , I came up with this.</p>
  
  <pre><code>def uppercase(str_data):
     ord('str_data')
     str_data = str_data -32
     chr('str_data')
     return str_data
  print(uppercase('abcd'))
  </code></pre>
  
  <p>However I am getting an error output: TypeError: ord() expected a character, but string of length 8 found.What am I missing here? </p>