from microbit import *

#accelerometer
while True:
    reading_x = accelerometer.get_x()
    reading_y = accelerometer.get_y()
    
    if reading_x > 50: #tilted to the left
        display.show("L")
    elif reading_y > 50: #tilted to the right
        display.show("R")
    else:
        display.show("-") # legend

f676e255ffc01ea6e61117a0853be2a2126388bb
<mask token>

<mask token>
while True:
    reading_x = accelerometer.get_x()
    reading_y = accelerometer.get_y()
    if reading_x > 50:
        display.show('L')
    elif reading_y > 50:
        display.show('R')
    else:
        display.show('-')

from microbit import *
while True:
    reading_x = accelerometer.get_x()
    reading_y = accelerometer.get_y()
    if reading_x > 50:
        display.show('L')
    elif reading_y > 50:
        display.show('R')
    else:
        display.show('-')

from microbit import *

#accelerometer
while True:
    reading_x = accelerometer.get_x()
    reading_y = accelerometer.get_y()
    
    if reading_x > 50: #tilted to the left
        display.show("L")
    elif reading_y > 50: #tilted to the right
        display.show("R")
    else:
        display.show("-") # legend
