time.sleep(5) # Time you want to delay for, in seconds (can be float value as well)
print('This message was delayed approx. 5 seconds')
This message was delayed approx. 5 seconds
Get better at data science interviews by solving a few questions per week
Find a bug? Submit a suggested change on Github, or message me on Twitter.