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 trialJuliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsPython Basics- Unable to create variable with array
I am unable to create this variable/array in the Treehouse console:
mt_list = [1, 2.5, 'a']
The console returns -bash: my_list command not found
Anyone else encounter this issue?
Thanks!
2 Answers
tomasvukasovic
24,022 Pointsyou wrote mt_list not my_list the typo caused the error
akak
29,445 PointsHi,
Are you in python interactive shell? Looks like you're trying to use python code in plain unix bash shell...
Enter python shell by typing python
first.
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsThanks Akak! I will remember that when I return to this course tomorrow:-)
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsJuliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsD'oh! Thanks Tomas!