Question: I have a problem when i run this python codes:def toUpper(word): def toUpper(word): ans = '' for ch in word: ascii = ord(ch) if ascii
I have a problem when i run this python codes:def toUpper(word):
def toUpper(word):
ans = '' for ch in word: ascii = ord(ch) if ascii >= 97 and ascii
this is after running this code
the last step which in the line 39-63 not work and i don't know why, i think the main problem is i put the "a" dictionary in the wrong way, can someone help me on this? it should work like this:
After replacing letters BTW I C@N H@S CH33ZBURG3R
The translated string is BTW I C@N H@S CH33ZBURG3R
Plz type the string that u want to be translated: by the way can i have a pen BY THE WAY CAN I HAVE A PEN Do you want to replace phrases: yes Do you want to replace words: yes Do you want to replace letters: yes What letters do you want to replace: BTW This progran cannot translate the letter T String to be translation BY THE WAY CAN I HAVE A PEN After replacing phrases BYTHEWAYCANIHAVEAPEN After replacing words After replacing letters The translated string is : BYTHEWAYCANIHAVEAPEN Do you want to translate another string: | BYTHEWAYCANIHAVEAPEN BYTHEWAYCANIHAVEAPEN Plz type the string that u want to be translated: by the way can i have a pen BY THE WAY CAN I HAVE A PEN Do you want to replace phrases: yes Do you want to replace words: yes Do you want to replace letters: yes What letters do you want to replace: BTW This progran cannot translate the letter T String to be translation BY THE WAY CAN I HAVE A PEN After replacing phrases BYTHEWAYCANIHAVEAPEN After replacing words After replacing letters The translated string is : BYTHEWAYCANIHAVEAPEN Do you want to translate another string: | BYTHEWAYCANIHAVEAPEN BYTHEWAYCANIHAVEAPEN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
