We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Your code fails if there are additional characters after '@gmail.com' (such as '@gmail.com.uk'), although I don't think that there are any sample cases like this.
The problem is asking for a regex solution. Sure, Python can do it without re, but it goes against the spirit of the problem.
Day 28: RegEx, Patterns, and Intro to Databases
You are viewing a single comment's thread. Return to all comments →