Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Iterator
#3
Iterators are a bit more advanced concept than a loop, but here's a simple explanation of them.

You probably want just a simple loop. If you know how many points there are in the plot, you can use a for-loop. Otherwise, a while-loop with a break condition.

for instance in number-of-times:
    // do stuff

incrementer = initial value
while condition is True:
    if incrementer has reached threshold value:
        break
    //do stuff
    incrementer += 1
Reply


Messages In This Thread
Iterator - by RL_Python - Jan-24-2018, 03:00 AM
RE: Iterator - by j.crater - Jan-24-2018, 07:16 AM
RE: Iterator - by league55 - Jan-24-2018, 10:57 AM
RE: Iterator - by RL_Python - Jan-25-2018, 03:17 AM

Forum Jump:

User Panel Messages

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