Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1- Develop a piece of Python code to extract the domain names (i.e. part of an e-mail address after @ sign) from a given string
1- Develop a piece of Python code to extract the domain names (i.e. part of an e-mail address after @ sign) from a given string which contains some arbitrary text as well as valid e-mail addresses. Your code must store all of the domain names in a list. For example, suppose you are given the below string: str = "aa@aaa.com,aa, bb@bbb.com,zz, cc@ccc.com,dummy, x, OzU, info@ozu.edu.tr, 2017, ee@ozu.edu.tr, dd@ddd.com,ee@e.com" Then, your code must extract aaa.com, bbb.com, ccc.com, ozu.edu.tr, ozu.edu.tr, dd.com and ee.com from the string str
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