Changing to uppercase letters using ASCII : <p>I have to create a function that changes lower case letters to upper case letters using only the ord and chr functions. </p>

<p>This is what I have so far, but the problem is it is not returning all the letters, only the first letter.</p>

<pre><code>def changeToUpperCase(text):

for i in text:
    i = ord(i) - 32
    text = chr(i)


    return text

def main():

text = input("Please type a random sentence.")



text = changeToUpperCase(text)
print("Step 2 -&gt; ", text)
</code></pre>
