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

Variable quiz- This quiz is broken. I have done everything that was done in the video. I even went to YouTube.

name = kyle

print (name)

that should then give me kyle

name.py

8 Answers

Kevin Franks
Kevin Franks
12,933 Points

Remove the space between print (name) and you should be good to go.

Joy Kesten
Joy Kesten
Treehouse Guest Teacher

You'll also need this tip from a later answer to complete the task "Sorry I missed something. Change Kyle to a string by putting it in 'Kyle'." - Kevin Franks

Kevin Franks
Kevin Franks
12,933 Points

Sorry I missed something. Change Kyle to a string by putting it in 'Kyle'.

Thank you, I was going crazy!

That didn't work. :(

ah yes, you are right. I know better than that.

Still didn't work...

name = kyle print('kyle')

Kevin Franks
Kevin Franks
12,933 Points

name = 'Kyle'

print(name)

<----- not smart

Kevin Franks
Kevin Franks
12,933 Points

It's not that bad. If you ran it in shell you would see the error saying that name = kyle was invalid due to kyle not being an initialized variable. The test just stops when your script throws an exception. In multi-step problems it will tell you that step 1 no longer works.

thank you. I am a mechanical engineer trying to learn how to code in order to make a couple ideas happen. I have never programmed before.