Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'tutorial': 0.03; 'syntax': 0.04; '22,': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; '"break"': 0.16; '::=': 0.16; 'ah,': 0.16; 'command,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:question.': 0.16; 'subject:start': 0.16; 'language': 0.16; 'wrote:': 0.18; 'aug': 0.22; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'message- id:@mail.gmail.com': 0.30; 'url:python': 0.33; 'fri,': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'url:org': 0.36; 'ben': 0.38; 'pm,': 0.38; 'little': 0.38; 'url:3': 0.61; 'linked': 0.65; 'details': 0.65; 'subject:. ': 0.67; 'subject:Very': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=6LJbmeo0y04e1M1iNoOSLEEo/OcVsXOEcnRS9tCkrwQ=; b=EPixg2XGBSoewEa9Ht0Q9iynIRAvXsnmyuijvpwJSaVbnSQtZ3n5SARTN2EoLdt0i8 BO60EwnflnZJQpv2QETSjgVlZG1/+VEFWTminEFcwNVPkjeqnV17V6KWLT4x3xlZM+69 H4Kq/4iTo5BRFgvYNonECTXB7Xx9iJ4q30iN7lAzf/szoPkS7gZBlrpa6Ilu3NnkSEB3 qrjRRAA1bSJ871cb2/BOmf1FY+9IL39sHHCmEjhuOnjTsOOB/uR4Xgfy7kXAKuZdfnpb XsWLOCX8YdVotHLkaeIaIOBwUrADlkF8JeA2vNYlylslFcXnEdkb81vaKEzUpyvHa8kx +0WA== MIME-Version: 1.0 X-Received: by 10.50.176.202 with SMTP id ck10mr24308891igc.2.1408674256010; Thu, 21 Aug 2014 19:24:16 -0700 (PDT) In-Reply-To: References: <1e5dv9l3aik5bb1jn4vil731rdl7q6sl3l@4ax.com> Date: Fri, 22 Aug 2014 12:24:15 +1000 Subject: Re: Very basic question. How do I start again? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408674258 news.xs4all.nl 2950 [2001:888:2000:d::a6]:53805 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76768 On Fri, Aug 22, 2014 at 12:13 PM, Seymore4Head wrote: > I tried putting break_stmt ::= "break" at the point where I > want to start over....:) ,but since there is no "start ove"r command, > I was happy to end the program. > > I get "invalid syntax so I tried break_stmt Ah, that's part of the language of syntax. The page Ben linked you to is the details of the grammar. This page from the tutorial might make it a little clearer: https://docs.python.org/3/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops ChrisA