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 (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.