it will draw the first, wait 2 seconds then draw the second and wait again and then it will check if you pressed the key.
At the start you won't be able to press esc fast enough to prevent the first execution.
Yes while checks before execution, while repeat until checks after at least 1 execution.
Putting them into a function won't change anything as the execution order won't change.
At the start you won't be able to press esc fast enough to prevent the first execution.
Yes while checks before execution, while repeat until checks after at least 1 execution.
Putting them into a function won't change anything as the execution order won't change.