How to keep run a game in window while we are inputting in terminal python [duplicate]
问题 This question already has answers here : Is there a way that while running pygame, I can also run the console too? (2 answers) Closed last year . I am new to python programming i was writing a code of snake game in which snake moves randomly on x axis. And user have to put input in terminal for the location of food and poison on x axis. And snake must be inside the food and poison. "The main thing i want to that is while the user input any location of food and Poison the snake must move whole