Tell us what’s happening:
I seem to be missing something. The “at_position” returns as 13. I slice the email at [:13] to get username. I am stuck. Any advice would be greatly appreciated.
Your code so far
email = 'alice.johnson@company.com'
print(f'Email: {email}')
at_position = email.find('@')
print(f'Position of @: {at_position}')
# User Editable Region
print(email[:13])
username = (email[:13])
# 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 4
