Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 codethe 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 BYTHEWAYCANIHAVEAPENStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started