from microbit import *
import random
images = [Image.HAPPY, Image.SAD, Image.CONFUSED, Image.ANGRY, Image.ASLEEP]
while True:
if button_a.is_pressed():
display.show(random.choice(images))
sleep(500)
Copyright ⓒ TECH79 All right reserved