Traceback error

Cai Gengyang gengyangcai at gmail.com
Sat Nov 21 01:54:37 EST 2015


This is a piece of code about comparators :


j# Assign True or False as appropriate on the lines below!

# Set this to True if 17 < 328 or to False if it is not.
bool_one = 17 < 328   # We did this one for you!

# Set this to True if 100 == (2 * 50) or to False otherwise.
bool_two = 100 == (2 * 50)

# Set this to True if 19 <= 19 or to False if it is not.
bool_three = 19 <= 19

# Set this to True if -22 >= -18 or to False if it is not.
bool_four = -22 >= -18

# Set this to True if 99 != (98 + 1) or to False otherwise.
bool_five = 99 != (98 + 1)


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


Any ideas how to debug this ?

Thanks a lot!

Appreciate it

Cai Gengyang



More information about the Python-list mailing list