Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Learning Loops
#8
(Oct-05-2016, 05:01 PM)Yoriz Wrote: Please post the code that was run to produce the output shown because the code in the first post would not produce the output shown (unless you have just not copied all of the output and cut the beginning off)

I copied the code from post 1 in this thread and ran it in Visual Studio.  I've run it several times with the same result.

Here is the code again.

for x in range (0,10):
    for y in range (1,21):
        print(x)
        print(y)
print('\n')
Reply


Messages In This Thread
Learning Loops - by BobA - Oct-03-2016, 01:59 AM
RE: Learning Loops - by Larz60+ - Oct-03-2016, 02:37 AM
RE: Learning Loops - by BobA - Oct-03-2016, 02:46 PM
RE: Learning Loops - by ATXpython - Oct-05-2016, 02:51 AM
RE: Learning Loops - by BobA - Oct-05-2016, 03:49 PM
RE: Learning Loops - by Yoriz - Oct-05-2016, 05:01 PM
RE: Learning Loops - by BobA - Oct-06-2016, 08:59 AM
RE: Learning Loops - by Yoriz - Oct-06-2016, 04:50 PM
RE: Learning Loops - by BobA - Oct-06-2016, 05:34 PM
RE: Learning Loops - by ATXpython - Oct-05-2016, 10:19 PM
RE: Learning Loops - by Larz60+ - Oct-06-2016, 11:24 AM
RE: Learning Loops - by BobA - Oct-06-2016, 12:25 PM
RE: Learning Loops - by sparkz_alot - Oct-06-2016, 01:25 PM
RE: Learning Loops - by snippsat - Oct-06-2016, 01:38 PM
RE: Learning Loops - by sparkz_alot - Oct-06-2016, 01:41 PM
RE: Learning Loops - by sparkz_alot - Oct-06-2016, 02:42 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020