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 have no clue why this is not working for me. My first coding challenge .

Just trying to do a coding challenge , creating a variable.

variable.py
Name = "David''

5 Answers

Hey David King, Before I help you welcome to Python, you will be creating a lot of variables in the future, and I hope you enjoy. Okay here is what you typed

Name = "David ' '

You can type this in 2 ways

Name = "David"

Or you can do it the other way

Name = 'David'

The thing that you did wrong was the quotation marks. I hope you enjoy Python.

Thank you very much but, I do not know if it is me or I am just lost when it comes to this. I am certified in Cisco, Novell, ComTIA, Microsoft and others. Not to bother you with my details but I did it your way and, I copied and paste and nothing work. But I will get it soon enough.

like this Name = "David" and like this Name = 'David'

There are two ways to do it

name = "David"

name = 'David'

It didn't work last time because I typed it wrong

I believe it should work. I don't have any degrees as I am in year seven who is 12 years old and want to become a Software Engineer working for Google.

I hope what I did was not a Python sin for beginners and or Novices like me but, I copied and paste your variable and it worked. LOL

Thank you very much.

Mr. Grover.

Your welcome and I hope you enjoy Python! :D