Meet and greet John Doe

Report a typo

Using the threading module, instantiate a thread so that the code below will generate the following output:

Hello, John Doe!
Wait a moment...
Have a great day!

Sample Input 1:

Sample Output 1:

Hello, John Doe!
Wait a moment...
Have a great day!
Write a program in Python 3
from threading import Thread
import time
def hello_doe():
time.sleep(3)
print('Wait a moment...\nHave a great day!')
# your code here
___

Create a free account to access the full topic