Page 1 of 1

No dictionaries allowed X is working on a new experiment, but he knows that Y can go in and read his notes, so he has de

Posted: Sun Jul 03, 2022 11:23 am
by answerhappygod
No dictionaries allowed
X is working on a new experiment, but he knows that Y can go inand read his notes, so he has decided to substitute some letterswith numbers so that Y won't be able to understand his notes soeasily. X is using these tables to change the letters:
def change_text(text):
Description: Given a text, return the newtext with the letters replaced by numbers taking into account thereplacement tables described above.
Parameters: text (string)
Return value: The new text (string)
Examples:
change_text("Hello World") → 'H3ll0 W0rld' change_text
("Python rocks!") → '9y7h0n r0ck5!'
change_text("My function works") → 'My func710n w0rk5'