I have got to a point in my code where I need to do this:
while True:
if first_number == second_number:
do_something()
break
The first number will keep incrementing beyond my control and I need to wait until this number reaches the value of the second number before I can continue.
I am looking for the best way to do this that will use up the least amount of resources (CPU).