Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Frank Millman" Newsgroups: comp.lang.python Subject: Re: Traceback error Date: Sat, 21 Nov 2015 09:26:06 +0200 Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de jZLi8hEOPM7va/N+Vj/edQAcxKixvMnn2JHEFJDfJDRQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'debug': 0.04; 'nameerror:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:error': 0.11; 'appropriate': 0.14; '"python",': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'there?': 0.16; 'typo.': 0.16; 'assign': 0.22; 'skip:n 60': 0.22; 'defined': 0.23; 'wrote': 0.23; 'tried': 0.24; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'header:X-Complaints-To:1': 0.26; 'rest': 0.26; 'error': 0.27; 'looks': 0.29; 'code': 0.30; 'run': 0.33; 'traceback': 0.33; 'file': 0.34; 'false': 0.35; 'there': 0.36; 'lines': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'doing': 0.38; 'to:addr:python.org': 0.40; 'frank': 0.72 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 197.89.92.4 In-Reply-To: X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3502.922 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3502.922 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99197 "Cai Gengyang" wrote in message news:e5d80196-61c5-44d9-bec8-dc563d58fa6a@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 recent call last): > File "python", line 1, in > NameError: name 'j' is not defined > Any ideas how to debug this ? It looks to me as if the error is right there on the first line. What is that 'j' doing there? It looks like a typo. HTH Frank Millman