Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76768

Re: Very basic question. How do I start again?

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 <rosuav@gmail.com>
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 <td9dv91bdncnpa46psag7o7lf06iftbrnq@4ax.com>
References <1e5dv9l3aik5bb1jn4vil731rdl7q6sl3l@4ax.com> <mailman.13268.1408672574.18130.python-list@python.org> <td9dv91bdncnpa46psag7o7lf06iftbrnq@4ax.com>
Date Fri, 22 Aug 2014 12:24:15 +1000
Subject Re: Very basic question. How do I start again?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13270.1408674258.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Aug 22, 2014 at 12:13 PM, Seymore4Head
<Seymore4Head@hotmail.invalid> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Very basic question.  How do I start again?   Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-21 21:37 -0400
  Re: Very basic question.  How do I start again? Ben Finney <ben+python@benfinney.id.au> - 2014-08-22 11:55 +1000
    Re: Very basic question.  How do I start again? Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-21 22:13 -0400
      Re: Very basic question. How do I start again? Chris Angelico <rosuav@gmail.com> - 2014-08-22 12:24 +1000
  Re: Very basic question. How do I start again? Chris Angelico <rosuav@gmail.com> - 2014-08-22 11:58 +1000
    Re: Very basic question. How do I start again? Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-21 22:18 -0400
      Re: Very basic question. How do I start again? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-08-21 23:17 -0400
  Re: Very basic question.  How do I start again?   Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-22 12:58 +1000
  Re: Very basic question.  How do I start again? Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-22 04:26 +0000
  Re: Very basic question.  How do I start again?   Tim Roberts <timr@probo.com> - 2014-08-21 22:56 -0700
    Re: Very basic question. How do I start again? Igor Korot <ikorot01@gmail.com> - 2014-08-21 23:21 -0700

csiph-web