March is all about MAKING!!
I have decided to take on the challenge of making a 5-minute micro:bit make every day throughout March.
Day06 – Coin Flip
Today I have decided to make a Coin Flip program. Great for decision making! Let’s get coding!
from microbit import * import random while True: if button_a.is_pressed(): if random.choice([True, False]): display.show(Image.HAPPY) else: display.show(Image.SAD)
Come back Tomorrow for another fun 5-minute micro:bit make