Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98707
| 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> |
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 | Next — Next in thread | Find similar | Unroll 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