Arrange the lines in a way that it creates a script that prints the following message:
Woke up outside.
Starting to sleep inside.
Remember the order we used in the greeting example and stick to it.
Arrange the lines in a way that it creates a script that prints the following message:
Woke up outside.
Starting to sleep inside.
Remember the order we used in the greeting example and stick to it.
print('Starting to sleep inside.')
import time
time.sleep(10)
print('Woke up outside.')
t.start()
t = Thread(target=sleepy_man)
from threading import Thread
def sleepy_man():
Create a free account to access the full topic