Tell us what’s happening:
I don’t know how to go about answering this exercise. I don’t know if it needs an if statement and how to do the print function
Your code so far
email = 'alice.johnson@company.com'
print(f'Email: {email}')
at_position = email.find('@')
print(f'Position of @: {at_position}')
username = email[:at_position]
print(f'Username: {username}')
# User Editable Region
def has_at():
if "@" in email:
print(f"Has @ symbol:{email}")
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36
Challenge Information:
Build an Employee Profile Validator - Step 5