Build an Employee Profile Validator - Step 4

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

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-employee-profile-validator/69e20a0451c7a3ef189514d3.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @jerrico12341

You are hard coding the value, try using the variable you created earlier.

Happy coding

And I’m lost.

instead of hardocing number 13, use the variable at_position that was just created