Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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