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

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

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!