Answered step by step
Verified Expert Solution
Link Copied!

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 codeimage text in transcribedthe 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

4. Why does transfer matter?

Answered: 1 week ago

Question

Evaluate the importance of the employee handbook.

Answered: 1 week ago

Question

Discuss the steps in the progressive discipline approach.

Answered: 1 week ago