Build an Employee Profile Generator - Step 17

Tell us what’s happening:

Debes cortar employee_codedesde el índice 4hasta 8y asignar el resultado a tu year_codevariable.

no se como terminar la operacion

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)
years_experience = 5
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}'
print(employee_card)
employee_code = 'DEV-2026-JD-001'
department = employee_code[0:3]
print(department) 

# User Editable Region

year_code = 2026
year_code = employee_code[4:8]
 
initials = employee_code[9:11]

print(year_code)
print(initials)

# 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/145.0.0.0 Safari/537.36

Challenge Information:

Build an Employee Profile Generator - Step 17

Were you asked to hard code the year_code assignment?

Debes cortar employee_codedesde el índice 4hasta 8y asignar el resultado a tu year_codevariable.

And that is the only assignment to employee_code you were asked to do.

Crea una variable year_codey asígnale la porción del employee_codeíndice 4a 8. Esto extraerá 2026.

Luego, crea una variable initialsy asígnale la porción del employee_codeíndice 9al 11. Esto extraerá JD.

Por último, imprima ambas variables en la terminal.

I know what the instructions say. Do you have a question?

si, no se como hacer para que me de JD como dice la ultima parte.

This is the only thing wrong with your code. You were not asked to hard code the year_code assignment, and there should only be one year_code assignment.

Listo.