Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Learning Loops
#7
BobA -
Is the complete code just the nested for loop you posted in your original post?
The output you are getting seems like your code is different than what youve supplied.

Post your full code.
We can better help you learn whats going on that way.
Are you following a tutorial?

Also, as Yoriz mentioned, y+=0 shows up no where in your code, so im not sure in what instance it is in question for you.
Look up arithmatic operators for python, and study how they work - you will run into them in every python script.
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