2022-2023/1NSI/02_Programmation_Python_et_.../scripts/03_while_condition.py

13 lines
167 B
Python
Raw Normal View History

2022-09-09 07:49:46 +00:00
from microbit import *
import time
limite = 10
tour = 0
while tour < limite:
display.scroll(tour)
tour = tour + 1
time.sleep(0.5)
display.scroll("Fin")