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


I use Ubuntu 14.04 Linux for the Python course. When I enter data responses I get an error without using quotes.

If I try to run the code that we have done in the Python course from the command line I get an error if I do not use quotes when entering data for a user response. Is this normal for Ubuntu? This does not happen when using WorkSpaces. Thank you!


1 Answer

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

You probably have Python 2.x in Ubuntu by default. We use 3.4 at Treehouse. There are some differences that you'll have to account for if you don't want to upgrade your local Python.

Thank you, Kenneth! My default version of Python is 2.7.6 and I have 3.4.3 available if I type in 'python3' at the prompt. I found this out after I tried to install version 3.4.3 and nothing seemed to happen. Is there a way to make 3.4.3 the default when i type 'python' at the command line?

Also, is there a download available for the shopping_list_4.py file? I have some errors popping up when I try to run it. It doesn't like DONE, SHOW, etc. It also doesn't show the count after entering items into the list.

Thank you! Bob