Hi,

When I try the following, python does not know 'as'. Why doesn't it?
Thanks,



>>> cats = ['Tom', 'Snappy', 'Kitty', 'Jessie', 'Chester']
>>> 
>>> type(cats)
<type 'list'>
>>> cats[2]
'Kitty'
>>> as=cats[2]
SyntaxError: invalid syntax
>>> as=cats
SyntaxError: invalid syntax
>>> as
SyntaxError: invalid syntax
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to