14 lines
296 B
Python
14 lines
296 B
Python
|
from microbit import *
|
||
|
from random import choice
|
||
|
import time
|
||
|
|
||
|
while True:
|
||
|
choix = choice(["P", "F", "C"])
|
||
|
if choix == "P":
|
||
|
display.scroll("Pierre")
|
||
|
elif choix == "F":
|
||
|
display.scroll("Feuille")
|
||
|
elif choix == "C":
|
||
|
display.scroll("Ciseaux")
|
||
|
time.sleep(1)
|