2

Sorry if this is a basic question but I'm just trying to print a string after a certain number of seconds and I'm not sure how to do it. I can put an input beforehand so that there is a reference for when the start of the 6 seconds.

something like this:

x = input()
after 6 seconds:
    print('Hello World!')
Jake
  • 97
  • 1
  • 6

1 Answers1

4

use import time

import time

x = input()
time.sleep(6)
print('Hello World!')
Nihal
  • 5,262
  • 7
  • 23
  • 41