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

I'm on the very first exercise in the Python video and can't figure out how to set up my name as a variable?

Would appreciate some help, I realize this is very basic and I must have done some minor glitch.

variable.py
'variable = name("loren")

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,454 Points

name = "Loren"

How you refer to the variable is on the left and its new value is on the right.

Ah so easy, thanks!