Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python please Purpose: To practice slicing and using string methods Degree of Difficulty: Easy An email address is a sequence of characters with the

image text in transcribed

in python please

Purpose: To practice slicing and using string methods Degree of Difficulty: Easy An email address is a sequence of characters with the following structure: it contains exactly one a character there are 1 or more characters before the a. We call these characters the username There is at least one period (.) SOMEWHERE after the @ IMMEDIATELY after the @ there are one or more characters that are NOT periods. We call all the characters in between them and the first-period-after-the-@ the domain For this question, you will write a program that lets the user type in a valid email address, and reports the username and domain components of that address. Your program may assume that the user always types a correctly-formatted email address. Hint: Tools such as slicing and the string method .find() will probably be the most useful here. Sample Runs Here is one possible sample run. Green text was entered by the user, and the blue text is based on that input Enter email address: ash@pokemon.kanto.jp Username: ash Domain: pokemon Here is another one. Enter email address: jeff.long@usask.ca Username: jeff.long Domain: usask

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Define and measure service productivity.

Answered: 1 week ago

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago