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
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