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 (2015) Shopping List App Shopping List Introduction

Evan Waterfield
Evan Waterfield
3,240 Points

keep getting errors for shopping list introduction

when I write the code in Workspaces it runs fine. Whenever I run the same code in a IDE and then try running it in a terminal i get errors. why is this?

Adam Rock
Adam Rock
11,970 Points

Not necessarily an answer but something to be cautious of is the version of python you are using on your own pc. There are some noticeable differences between how Python2.* and Python3 handle certain code. A common issue in Python2 is that you must use quotes around any string input you give to a program, otherwise it will throw an error. You may want to use python -v or python --version (in python 2.5 and above) to find out your version. I believe treehouse uses Python3 for it's code challenges and tutorials.