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

gabrielle moran
gabrielle moran
1,985 Points

I keep getting an error mssge when I try to assign my name to the variable name

what is wrong when I try to assign my name to the variable name. I have tried it many ways and I still get the error mssge (I tried to copy and paste it in here but couldn't do it. I have been putting: name = 'gabrielle'

strings.py
name = gabrielle

name = 'gabrielle'

name = 'My name is gabrielle'

name = "gabrielle moran"

1 Answer

Gabbie Metheny
Gabbie Metheny
33,778 Points

name = 'gabrielle' should work, just make sure it's the first and only line of code you have for step 1 of the challenge. If you're still getting an error from that exact line, I'd contact support for more help.

gabrielle moran
gabrielle moran
1,985 Points

Thanks Gabbie. That works. I had started to think I should try that but thought I would wait for an answer, as I had already asked the question! Great name, BTW