Question: THIS IS FOR PYTHON3 Write a function to replace at least eight different letters with established single or double character homoglyphs (e.g., replace K with

THIS IS FOR PYTHON3

Write a function to replace at least eight different letters with established single or double character homoglyphs (e.g., replace "K" with "|<", "A" with "4", "I" with "1", etc.) of your choosing. This function must take two arguments - the string to be modified and a string of letters as an argument (i.e., the letters that the user decided they wanted to replace). If any of those letters are among the eight different letters you have coded homoglyphs for, your function must replace those letters with the homoglyphs. If any of the letters passed as an argument are ones that you have not coded homoglyphs for, print an explanation do the user (i.e., print a message like "This program cannot translate the letter ..."). This function must return the string with the replacements. The restrictions (in terms of what you can and cannot user) are the same as with the previous item.

DONT USE REPLACE, FIND, ENCODE OR TRANSLATE FUNCTIONS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!