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

P S ANUJ KUMAR
P S ANUJ KUMAR
495 Points

Question on Python Basic class by Craig Dennis. Please help !!

Hi, I am not getting the same result as Craig when i type

first_name="Ada" print(first_name)

print("Hello,Anuj") print("Anuj is learning python")

The response i get in workspace is

treehouse:~/workspace$ python hello.py
Hello, World

Note: First Name (Ada) is not on the top. Besides, i am not getting result for "Anuj is learning Python)

Harris Handoko
Harris Handoko
3,932 Points

Hi there... please paste your code like this:

  1. use the ` symbol three times (this is the symbol right above your left TAB button on your keyboard, sharing the same button as "~"
  2. then type python next to ```
  3. then paste your code below ``` python
  4. then close it with another ``` on the next line

And... MAKE SURE TO SAVE CHANGES to the file before you run the file in the console.

1 Answer

Is there a way I can see your code you have written?

P S ANUJ KUMAR
P S ANUJ KUMAR
495 Points

Thank you for the response. I realized, that i have not saved my working and hence it was not working. Its working fine now. Have a great day ahead