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
The below-simplified code help to convert Lower-case alphabets to Upper-case alphabets using a simple calculation
code :
def toUppercase(string): convertedCharacter = '' for i in string: convertCharacter += chr( ( (ord(i)) -32) ) return convertCharacter