Sleep - Lakelands Computing

Title
Go to content
Sleep()
Sleep() is a useful little command, it pauses the execution of the program for a period of time - effectively it pauses the program - it is a bit like wait in scratch.

To use it you need to import the time module.

  • import time

  • time.sleep(2)

This would pause the program for 2 seconds.
All Text copyright Lakelands Academy & Mr T Purslow 2020.
All images copyright free / creative commons unless otherwise stated.
You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
All Text copyright Lakelands Academy & Mr T Purslow 2020.  All images copyright free / creative commons unless otherwise stated. You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
All Text copyright Lakelands Academy & Mr T Purslow 2020.  All images copyright free / creative commons unless otherwise stated. You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
Back to content