5. A company named Sheba.xyz has recently moved from their old domain to a new domain. However, a lot of the company email addresses are still using the old one. Write a function in python that...


Solve in python, Please.


5. A company named Sheba.xyz has recently moved from their old domain to a new<br>domain. However, a lot of the company email addresses are still using the old one.<br>Write a function in python that replaces this old domain with the new one in any<br>outdated email addresses. Keep same if the email address contains the new domain.<br>(Do not use builtin replace function)<br>Firstly, define a “replace_domain

Extracted text: 5. A company named Sheba.xyz has recently moved from their old domain to a new domain. However, a lot of the company email addresses are still using the old one. Write a function in python that replaces this old domain with the new one in any outdated email addresses. Keep same if the email address contains the new domain. (Do not use builtin replace function) Firstly, define a “replace_domain" function which accepts three parameters *The email address to be checked *The new domain * The old domain (Use Default argument technique to handle this) Sample Input ('[email protected]', 'sheba.xyz', 'kaaj.com') ('[email protected]', 'sheba.xyz') Sample Output Changed: [email protected] Unchanged: [email protected]

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here