how to wait for 0.5 seconds python code example Example: python wait 5 seconds then display from time import sleep sleep(2) print("hello world")