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 (Retired) Ins & Outs Ins & Outs

how do i put in a string variable when creating a variable with my name?

the quiz has asked me to create a variable with my name called name but its telling me i dont have a string variable, what does that mean?

name.py
name = print("miranda")

1 Answer

Miranda, you're really close on this, all you need to do is leave out the print method. and just have a string, like so:

name = "Miranda"

and that's it.

thanks so much :)!

Not a problem!!