Answer the question
In order to leave comments, you need to log in
Bug when executing a while loop in python?
There is, for example, this code:
while True:
if keyboard.is_pressed('n'):
while keyboard.is_pressed('n'):
keyboard.press_and_release('B')
time.sleep(0.05)
else:
pass
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question