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 for Beginners Create a variable

'name=erik"'

can someone tell me what exactly is wrong here with this code?

variable.py

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Hi Erik Keippel

I have deleted duplicate threads you have posted regarding this particular question. Both Cameron and Henrik have provided answers with explanations. Please try not to post multiple threads for the same questions as this clutters the Community.

Thank you :)

Jason ~Community Moderator

2 Answers

Cameron Lauf
PLUS
Cameron Lauf
Courses Plus Student 8,115 Points

You're close Erik! When setting a variable you only need quotes around the value. The value here is your name. It should look like name = "Erik". Hope this helps you out.