Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

What is quality of work life ?

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

2. Outline the functions of nonverbal communication

Answered: 1 week ago