Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98707

Why does 'as' not recognized?

Newsgroups comp.lang.python
Date 2015-11-12 09:20 -0800
Message-ID <8ddbc8fd-ebdb-4cd2-8e3b-b0e1f5142e76@googlegroups.com> (permalink)
Subject Why does 'as' not recognized?
From fl <rxjwg98@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Why does 'as' not recognized? fl <rxjwg98@gmail.com> - 2015-11-12 09:20 -0800
  Re: Why does 'as' not recognized? John Gordon <gordon@panix.com> - 2015-11-12 17:24 +0000

csiph-web