Welcome to the Treehouse Community
Looking to learn something new?
List Function error
Hi all, im having an error when im trying to make a simple list to follow along my python teacher.
treehouse:~/workspace$ a_list = list('abzde') bash: syntax error near unexpected token `('
Chris FreemanTreehouse Moderator 67,989 Points
You are trying to execute Python at a bash shell prompt in the console window.
Create a file in the workspace, say code.py, save it, then type
at the bash prompt.
If you want to start the python REPL, simply type
treehouse:~/workspace$ python Python 3.5.0 (default, Nov 26 2015, 16:04:52) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on unknown Type "help", "copyright", "credits" or "license" for more information. >>> a_list = list('abzde') >>> a_list ['a', 'b', 'z', 'd', 'e']
Many thanks for your fast response,i really appreciate that