Build an Employee Profile Generator - Step 15

Tell us what’s happening:

I am new at coding and I have a lot of questions I am pretty unsure of what to do at this step and I have tried everything I could think of but no luck :frowning:

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'

# User Editable Region

print(experience_info)
employee_card = f'Employee: {full_name} | Age: {employee_age}'
position = 'Data Analyst'
salary = 75000
employee_card = f"Employee: {full_name} | Age: {employee_age} | Position: {position} | Salary: ${salary}"
print(employee_card)


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

Challenge Information:

Build an Employee Profile Generator - Step 15

If you take a look at the starting position of the cursor, it starts above the “employee_card =” line. position and salary should be above that.

Then, update your employee_card f-string to include the position and salary.

This indicates to edit the existing f-string, not to create a new one.

Thank you so much, but I did try that and it still does not want to me to continue it keeps telling me to edit the existing one and I did do that what you recommended as well ?

Tell us what’s happening:

I am still struggeling with the same problem after updating it and it keeps telling I should update the f’ string after I did ?

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)

# User Editable Region

position = "Data Analyst"
salary = 75000
employee_card = f'Employee: {full_name} | Age: {employee_age} |Position: {position} | Salary:${salary}'
print(employee_card)

# 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 Edg/145.0.0.0

Challenge Information:

Build an Employee Profile Generator - Step 15

Please do not create duplicate topic for the same challenge/step. I have merged your recent post into this existing topic.

Check your spacing carefully to make sure it matches what is expected.