# Imports go at the top from microbit import * x = 2 y = 2 while True: if button_a.get_presses(): x -= 1 if button_b.get_presses(): x += 1 if x < 0: x = 0 elif x > 4: x = 4 display.clear() display.set_pixel(x,y,9) sleep(100)