Tell us what’s happening:
I am working on Step 9 of the Employee Profile Generator. I tried to concatenate “employee_age” to the end of “employee_info” using “employee_info += employee_age”, but the test still says “You should concatenate employee_age to the end of employee_info.” I am getting a TypeError in the console and I am not sure why the test is not passing. Can someone help me understand what I am doing wrong?
Your code so far
first_name = 'John'
last_name = 'Doe'
full_name = first_name + ' ' +last_name
address = '123 Main Street'
# User Editable Region
address += ', Apartment 4B'
employee_age = 28
employee_info = full_name+ ' is '
employee_info += employee_age #this may cause a TypeError
employee_info += str(employee_age)
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