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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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'
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply