5. import time - makes commands from the time library available, 11.IMAGE_HAND = "Hand" - assigns the string hand to the IMAGE_HAND constant, 22. timesToTest = 3 - Assigns 3 to the variable timesToTest, 28. while (timesToTest != 0): - loops as long as timesToTest is not zero, 32. time.sleep (15) - makes the computer wait for 15 seconds, 36. time.sleep (TIME_WALK) - makes the computer wait for the number of seconds given by the constant (TIME_WALK), 39. for seconds in range (TIME_COUNTDOWN, 0, -1): - counts down from the TIME_COUNTDOWN to 0 in steps of -1, 44. time.sleep (seconds) - makes the computer wait for the number of seconds stored in seconds, 46. timesToTest = timesToTest - 1 - subtracts 1 from timesToTest,

Python revision 1

tekijä

Tulostaulu

Visuaalinen tyyli

Vaihtoehdot

Vaihda mallia

Säilytetäänkö automaattisesti tallennettu tehtävä ?