Build an Employee Profile Generator - Step 15

Tell us what’s happening:

Create a variable named position with the value of the string Data Analyst and a variable named salary with the value of the integer 75000.

Then, update your employee_card f-string to include the position and salary. It should follow this exact format: Employee: [full_name] | Age: [employee_age] | Position: [position] | Salary: $[salary]. Replace the placeholders with the corresponding variables.

When i check the code it asks me to add the integer 75000 to the variable salary

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/150.0.0.0 Safari/537.36

Challenge Information:

Build an Employee Profile Generator - Step 15

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

Welcome to the forum @naomiam,

Should salary be a string?

Happy coding

Thanks.

Found it and fixed it.