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

Krissel Griarte
Krissel Griarte
2,683 Points

Python first question

The first question for the python course asks to create a variable called 'name' and the value of name should be my name as a string.

I wrote out

name = "Krissy Griarte"

I got the question wrong?

variable.py
name = "Krissel Griarte"

It worked fine for me. Are you sure you didn't add extra characters inside the challenge prompt?

Asking for just your first name I think. So name = 'Krissel' It'll work fine though in other exercise this one just asking for a name. So first name.

1 Answer

Ok I hope you were able to get your answer. :)