Re: Traceback error

2015-11-20 Thread dieter
Cai Gengyang 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 > NameError: name 'j' is not defined Th

Re: Traceback error

2015-11-20 Thread Cai Gengyang
Right ... I removed the 'j' and the code works now. I must have accidentally put it in , forgot about it and thought that it was part of the original code when it shouldn't have been there in the first place. Thanks ! On Saturday, November 21, 2015 at 3:27:02 PM UTC+8, Frank Millman wrote: > "

Re: Traceback error

2015-11-20 Thread Frank Millman
"Cai Gengyang" wrote in message news:e5d80196-61c5-44d9-bec8-dc563d58f...@googlegroups.com... This is a piece of code about comparators : j# Assign True or False as appropriate on the lines below! [snip rest of code] When I tried to run it, this is the error I got : Traceback (most

Traceback error

2015-11-20 Thread Cai Gengyang
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