Build an Employee Profile Generator - Step 11

Tell us what’s happening:

first_name = ‘John’
last_name = ‘Doe’
full_name = first_name + ’ ’ + last_name
address = ‘123 Main Street’
address += ‘,Apartment 4B’
employee_age = str(28)
employee_info = full_name + ’ is ’ + employee_age + ’ years old’
print(employee_info)

You should concatenate ’ years old’ to the end of the employee_info variable.

Step 11
Now complete the sentence by updating the employee_info assignment to also concatenate the string years old at the end, using the + operator. Remember to include a spa

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 = str(28)
# User Editable Region
employee_info = full_name + ' is ' + employee_age + ' years old'
print(employee_info)

You should concatenate ’ years old’ to the end of the employee_info variable.

Step 11
Now complete the sentence by updating the employee_info assignment to also concatenate the string years old at the end, using the + operator. Remember to include a space at the beginning of your string.

Finally, 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/152.0.0.0 Safari/537.36

Challenge Information:

Build an Employee Profile Generator - Step 11

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

why have you changed this line?

please reset the step, and do not move the str() function, it’s good where it is