Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 1 . Implement the Function Read the specification for the function and look at the test cases in the provided test script. With this
Implement the Function
Read the specification for the function and look at the test cases in the provided test script. With this information, complete the function, making sure to use an ifelse statement. As there are only two possible types of email addresses, it should be pretty straightforward to figure out how to do this.
The harder part is figuring out how to extract the name. This obviously involves string slicing, but you need to know where to slice. There are functions in the introcs module that can help you here.
When you have implemented the function, run the test script. If you have done it correctly, you should pass all tests.
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