You've got mail!

Report a typo

Email addresses usually have the same structure: [email protected] (or any other domain).

You are working with a database of email addresses from an imaginary email service yougotmail.com. Create a program that would separate the local-part that precedes the @ sign from the rest of the address.

The input format:

The email address. It is stored in the variable email, you do not need to work directly with input.

The output format:

The local-part of the address.

Sample Input 1:

Sample Output 1:

someone

Sample Input 2:

Sample Output 2:

john.andrew.smith
Write a program in Python 3
# write your code here
# remember: the variable email is already defined
___

Create a free account to access the full topic