Build an Employee Profile Generator - Step 16

Tell us what’s happening:

Why am i always stuck on "you should have a variable name “employee_code”

Your code so far

first_name = 'John'
last_name = 'Doe'
full_name = first_name + ' ' + last_name
address = '123 Main Street'
address += ', Apartment 4B'
employee_age = 28
employee_info = full_name + ' is ' + str(employee_age) + ' years old'
print(employee_info)
experience_years = 5
experience_info = 'Experience: ' + str(experience_years) + ' years'
print(experience_info)
position = 'Data Analyst'
salary = 75000
employee_card = f'Employee: {full_name} | Age: {employee_age} | Position: {position} | Salary: ${salary}'
# User Editable Region
print(employee_card)
employee_code ='DEV-2026-JD-001'
department =employee_code[0, 3]
print (department)
# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36

Challenge Information:

Build an Employee Profile Generator - Step 16

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-employee-profile-generator/694bf6eb530e19a9c48c59f5.md at main · freeCodeCamp/freeCodeCamp · GitHub

This is not how we slice a string .

you have this error in the terminal

image

it makes all the other tests fail