So I am trying to create a function that capitalizes all of the letters of a string the same way s.upper would do, but in the format of a function. And I want to try to utilize ord() and chr() but stating that if the character of a string is >90 replace it with the character that is 32 less than the original ore. I feel like I have some of the pieces, but Im not sure how to actually put it together. I know I need a string accumulator, but how to fit them all together is not coming to me. So far I have this:
def Uppercase(s):
x = ''
for ch in s:
x = -----> confused about what the accumulation would be
if ch ord() > 91:
s.replace(ch, chr(ord())-----> not sure that this is possible to implement