I am trying to create a program on Python which shows a random number every 3 seconds for 30 seconds. I know how to do it the long way like this:
import random
print (random.randint(0,100))
from time import sleep
sleep(3) # Time in seconds
I did this ten times. Is there any way to make this process shorter?