I am currently making a discord bot, and I need it to make some loops in places but I also need it to be ready to respond to other people while it's in the loop. Here's a simplified example:
n = 40
while n > 0:
print(n)
n -= 1
print('Hello')
Here I want the hello to be printed while the loop is happening, not after it finishes