Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Python Data Types String concatenation

Andrés Priego
Andrés Priego
652 Points

Oops! It looks like Task 1 is no longer passing

tried to concatenate subject="Treehouse loves" + name where name is a prev. declared variable i.e name="Artie"

strings.py
name="Andres"
a="Treehouse Loves"
subject=a+name

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Your code would work and you're very close here, but there are a couple of problems mostly related to the instructions of the challenge. So I'm going to give some hints:

  • The capitalization is incorrect on the word "Loves". See the instructions
  • The current string stored in subject would be "Treehouse LovesAndres" instead of "Treehouse loves Andres". Correct your spacing.

I think you can get it with these hints, but let me know if you're still stuck! :sparkles:

Andrés Priego
Andrés Priego
652 Points

Thank you Jennifer, it totally worked!

-A