Build an Employee Profile Generator - Step 9

Tell us what’s happening:

Please tell me ,how can i solve this problem ? I don’t understand this problem .

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

# User Editable Region

employee_info = full_name + ' is ' 
employee_info += str(employee_age) 
employee_info += + 'years old.Lives at'
employee_info += address
print(employee_info)

# 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 9

Its 100% not your fault, your code is completely valid but the test is not robust enough, it is expecting you to concatenate at the end of the current existing line:

removed

Anything else fails the test:

employee_info = full_name + ' is '
employee_info += employee_age # FAILS
employee_info = employee_info + employee_age # FAILS

Eh what can you do :man_shrugging:

The area to edit is highlighted. This indicates to edit the existing line:

Only do what’s asked for in the instructions and nothing else

Now try to concatenate employee_age to the end of your employee_info string.

Is it, though?

employee_info += + 'years old.Lives at'

I assumed all that jargon was the aftermath of debugging. plus was trying to be a little encouraging and relieve any frustration from unexpected test behaviors. :grimacing:

Please do not share solution code in your replies

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.