Thread puzzle

Report a typo

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.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                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