key is entered...
How can i achieve this?
while (x := input()) != 'q': ...
Not helpful
that's literally what you asked for
Sorry.. if my text was confusing
Google this: python interrupt loop when key pressed
Обсуждают сегодня