from microbit import *
count = 0
while True:
if button_a.is_pressed():
count += 1
display.show(str(count))
sleep(500)
Copyright ⓒ TECH79 All right reserved