I've seen some posts about running infinite loops in python but nothing covering this specific topic.
I was wondering if you could run code that asked the user a question for an input, whilst another infinite loop was running in the background? Sorry if this is stupid, I'm new to python.
import time
num = 1
while True:
num = num + 1
time.sleep(0.1)
while True:
ques = input("What is your favourite type of burger? ")
if ques == "quit":
break;
print(num)
# here i am wondering whether i can keep the first loop going while the second loop asks me questions