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 (Retired) Shopping List Lists

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 Points

Python 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

you wrote mt_list not my_list the typo caused the error

akak
akak
29,445 Points

Hi, 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.