Build an Employee Profile Generator - Step 15

Tell us what’s happening:

i am writing the code as the step 15 but it again saying that it’s not correct

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

Challenge Information:

Build an Employee Profile Generator - Step 15

Welcome to the forum @azazirshad19

Here is a comparison of the original code and your code.

The code in blue is the original code, the code in red is your code.
The code in magenta is the overlap.

image

Looks like there is too much space before the word “Position”.

Happy coding

Is there an issue with this snippet?

employee_card = f’Employee: {full_name} | Age: {employee_age} | Position: {postion} | Salary: ${salary}’

print(employee_card)

In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.