Here is the important part of my code
print(''.join(num))
time.sleep(5)
replit.clear()
guess = input('What number did you see? ')
I am doing this in Replit, if it matters. I am trying to create a memory game, where the user sees a number with increasing digits and has to repeat it from memory. I show them the number, then clear the screen after 5 seconds. However, the user can just type the number while they still see it, before the screen clears. That input counts as the input for "guess", and they win. How do I stop this from happening, allowing the user to only input something after it clears the screen?