Traceback error

dieter dieter at handshake.de
Sat Nov 21 02:31:13 EST 2015


Cai Gengyang <gengyangcai at 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.




More information about the Python-list mailing list