Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99200
| From | dieter <dieter@handshake.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Traceback error |
| Date | 2015-11-21 08:31 +0100 |
| Message-ID | <mailman.31.1448091309.2291.python-list@python.org> (permalink) |
| References | <e5d80196-61c5-44d9-bec8-dc563d58fa6a@googlegroups.com> |
Cai Gengyang <gengyangcai@gmail.com> writes:
> This is a piece of code about comparators :
> j# Assign True or False as appropriate on the lines below!
> ...
> When I tried to run it, this is the error I got :
>
> Traceback (most recent call last):
> File "python", line 1, in <module>
> NameError: name 'j' is not defined
The error information is very precise: in your line 1, you have:
j# Assign True or False as appropriate on the lines below!
The "j" before the comment ("#...") is what causes the problem.
Likely, you did not want it there.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Traceback error Cai Gengyang <gengyangcai@gmail.com> - 2015-11-20 22:54 -0800
Re: Traceback error "Frank Millman" <frank@chagford.com> - 2015-11-21 09:26 +0200
Re: Traceback error Cai Gengyang <gengyangcai@gmail.com> - 2015-11-20 23:33 -0800
Re: Traceback error dieter <dieter@handshake.de> - 2015-11-21 08:31 +0100
csiph-web