r/FreeCodeCamp • u/ArouchMoo • Oct 16 '26
Programming Question Need Help; Not too sure what's wrong
I'm on step 3 of Python; Build an Employee Profile Validator.
I have tried turning off dark mode (extension) and ad blocker, to which it has not helped. Within the terminal there are no syntax errors and it looks just like the thing wanted me to do.
However, when checking the code it comes back as 'You should print at_position so that the output reads Position of @: 13.
I believe my route is wrong or something.
Here is my code;
email = 'alice.johnson@company.com'
print(f'Email: {email}')
at_position = email.find('@')
print(f'Position of @:', email.find('@'))
Here is what it shows when printed;
Email: alice.johnson@company.com
Position of @: 13
Thank you in advance
2
u/SaintPeter74 mod Oct 16 '26
Two things:
at_positionwhen printing the string.2
u/smichaele Oct 16 '26
You assign the method "email.find('@')" to the variable "at_position," but you don't print the value of that variable. You then evaluate the method a second time and print its value in your print statement. Your print statement also has no space following the ":" while your error message shows a space.