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 Meet Python Variables

Kris Anon
Kris Anon
54 Points

I follow instructions specified by the video, but the terminal is not reflecting the content that I am inputting.

So I am following the video in "Variables" and following the instructions stated in the video. I typed in print("Hello, Kris") and even print("Kris is learning Python") and it works out fine (Took a while for the terminal to recognize this though) but then I do first_name = "Ada" on the first line (I created additional lines instructed in the video) and other content, but the terminal still reads "Hello," Kris" and "Kris is learning Python" even after entering python hello.py. Is there something I am missing regarding the lines?

4 Answers

Hi Kristopher,

Have you tried typing the line:

print first_name

in your hello.py file following the variable assignment?

Cheers,

Joe

Rouillie Wilkerson
Rouillie Wilkerson
10,419 Points

Be sure to add a snapshot or scrape of your code so we can see what it is.

Melissa Ho
Melissa Ho
1,600 Points

how about you could try

print("Hello, " + first_name)

hopefully this work