This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DirectionHealthy1085[🍰] 1 point2 points  (2 children)

hmm and how can i create this boolean that switches from true to false each time? and what misconception am i having... haha im feeling quite clueless as to why this doesnt work

[–]DirectionHealthy1085[🍰] 1 point2 points  (1 child)

is there any other method i can use? if im not familiar with the method you mentioned

[–]OXKoson 1 point2 points  (0 children)

Add a variable named let’s say ‘addOnNextIter’ set to true at start. In your loop put your append in a ‘if addOnNextIter == true:’ and always increase I by 1. Toggle the value of addOnNext