From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8d8e831905c2cf39 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!q30g2000yqb.googlegroups.com!not-for-mail From: onox Newsgroups: comp.lang.ada Subject: Re: My first solution Date: Wed, 15 Jun 2011 11:39:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <55e3577f-c26b-40cc-991b-9693ea8ae391@q30g2000yqb.googlegroups.com> References: <3420583b-a063-4634-9989-580888e38eee@f2g2000yqh.googlegroups.com> NNTP-Posting-Host: 82.139.123.174 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1308163150 8302 127.0.0.1 (15 Jun 2011 18:39:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 15 Jun 2011 18:39:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q30g2000yqb.googlegroups.com; posting-host=82.139.123.174; posting-account=BtkjvAoAAADwEquGb07eykXfyiDMOxfl User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRUAELSC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.53 Safari/534.30,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19858 Date: 2011-06-15T11:39:10-07:00 List-Id: On Jun 15, 8:01=A0am, juanmiuk wrote: > =A0 =A0 =A0for I in My_Num range 1 .. 10 loop Assuming you want to iterate over the whole range of My_Num, you can write instead: for I in My_Num loop Following also seems to work: for I in My_Num'Range loop