I have a question and I'm hoping one of you awesome programmers could help me with a problem I've been pondering over
Script 1:
while checkForTrue():
continue
Script 2:
import time
while checkForTrue():
time.sleep(0.1)
Now, checkForTrue() is a simple function that will decide at some point weather or not to return true... for the sake of this example its not really important when, i just wanted to throw that in there.
Which script (1 or 2) should you try to use in your every day coding? At first glance you'd guess the second one... because it is not calling checkForTrue() every chance it has but at the same time your running an alternate function (time.sleep(x)) which has its own methods for causing the script to delay a set amount of time.
Ill stop guessing and see what you guys have to say now
~Cody Woolaver