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 trialNiall Maher
16,985 PointsWhen declaring a variable in console I keep getting "-bash: a: command not found"
I could get my py script running fine but whenever I try to declare anything in the console I just get -bash: a: command not found. This is frustrating as I cant move any further as my console seems broke? :/
1 Answer
Michael Norman
Courses Plus Student 9,399 PointsYou first need to type "python" into the shell to enter the python environment as you see below
treehouse:~/workspace$ python
Python 3.4.1 (default, Apr 10 2015, 01:07:53)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Niall Maher
16,985 PointsNiall Maher
16,985 PointsThank you brother I thought I only had to do it initially but the console must have forgot.