Build an Employee Profile Validator - Step 7

Tell us what’s happening:

The step wants the name to have another set of parantheses to the name. Everytime I try, it throws a syntax error.

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}')

has_at = '@' in email
print(f'Has @ symbol: {has_at}')

has_com = '.com' in email
print(f'Has .com: {has_com}')

# User Editable Region
messy_name = '  sARaH dAVis  '
print(f'Original name:{messy_name}')
# 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/155.0.0.0 Safari/537.36 Edg/155.0.0.0

Challenge Information:

Build an Employee Profile Validator - Step 7

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

Hi @devbone,

Since you need single quotes around the variable’s value, what type of quotes should you use for your f-string?

Happy coding

Hi dhess

Thank you so much for helping kind sir, I love the way you help but not straight forward so and you leave room to end it ourself you are the best, It used to be different workshop but they just updated it few days ago for a different one I was like why empty circle i finished it, but ye they changed it for new one and there is nothing on youtube only froum and people like you help us, I totally forgot how it should be done thank you so much god bless you guys. THank you so much