Feat: ajoute boucle while pour Python
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from microbit import *
|
||||
import time
|
||||
|
||||
while True:
|
||||
temp = temperature()
|
||||
display.scroll(temp)
|
||||
time.sleep(1)
|
@@ -0,0 +1,12 @@
|
||||
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")
|
Reference in New Issue
Block a user