# Build an Employee Profile Validator - Step 20

**URL:** <https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-20/802108>\
**Category:** Curriculum Help\
**Tags:** backend-development\
**Created:** [October 11, 2026, 8:34pm UTC](https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-20/802108 "2026-10-11T20:34:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spotme](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Spotme](https://forum.freecodecamp.org/u/Spotme)\
**Post date:** [October 11, 2026, 8:34pm UTC](https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-20/802108/1 "2026-10-11T20:34:50Z")

</div>

### Tell us what’s happening:

What are my not doing right on this code? I thought i got the settings but it’s coming back as not right.

### Your code so far

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

messy_name = ' sARaH dAVis '
print(f"Original name: '{messy_name}'")

clean_name = messy_name.strip().title()
print(f"Cleaned name: '{clean_name}'")

messy_email = ' SARAH.DAVIS@COMPANY.COM '
clean_email = messy_email.strip().lower()
print(f"Original email: '{messy_email}'")
print(f"Cleaned email: '{clean_email}'")

name_badge = clean_name.upper()
print(f'Name badge: {name_badge}')

at_pos = clean_email.find('@')
email_user = clean_email[:at_pos]

print(f'Email: {clean_email}')
print(f'Username: {email_user}')

display_name = email_user.replace('.', ' ').title()
print(f'Display name: {display_name}')

phone = '123-456-7890'
phone_clean = phone.replace('-', '')
print(f'Phone with dashes: {phone}')
print(f'Phone without dashes: {phone_clean}')

full_address = '123 Main Street, Springfield, IL'
address_parts = full_address.split(', ')
print(f'Address parts: {address_parts}')

rejoined = ' | '.join(address_parts)
print(f'Rejoined: {rejoined}')

employee_code = 'EMP-2024-SD'
starts_with_emp = employee_code.startswith('EMP')
ends_with_com = clean_email.endswith('.com')

print(f'Code: {employee_code}')
print(f'Starts with EMP: {starts_with_emp}')
print(f'Clean email: {clean_email}')
print(f'Ends with .com: {ends_with_com}')

# User Editable Region
dot_count = 'sarah.davis@company.com'
dash_count = 'EMP-2024-SD'
print(dot_count.count('.'))
print(dash_count.count('-'))
# 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/153.0.0.0 Safari/537.36`

### Challenge Information:

Build an Employee Profile Validator - Step 20

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/python-v9/workshop-employee-profile-validator/step-20)**
>
> Learn to Code for Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/workshop-employee-profile-validator/69eb3158c33d9a229a79951c.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-employee-profile-validator/69eb3158c33d9a229a79951c.md)

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [October 11, 2026, 8:44pm UTC](https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-20/802108/2 "2026-10-11T20:44:54Z")

</div>

Hi @Spotme,

> `dot_count` should count how many `.` characters appear in `clean_email`

Are you asked to `print` the “.” characters in `dot_count`?  
Or are you asked to assign to `dot_count` the value of counting the “.” characters in `clean_email`.

There is no instruction to `print` in this step.

Happy coding

---

<div class="post-metadata">

**Author:** ![Spotme](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Spotme](https://forum.freecodecamp.org/u/Spotme)\
**Post date:** [October 11, 2026, 8:51pm UTC](https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-20/802108/3 "2026-10-11T20:51:52Z")

</div>

Thank you, I solved it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [October 13, 2026, 8:52pm UTC](https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-20/802108/4 "2026-10-13T20:52:00Z")

</div>

Closed on October 13, 2026, 8:52pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
