The tilt switch itself has a built in LED that can be used to indicate when the switch is on or off. The LED is controlled by connecting to another pin on the micro:bit. It doesn't need to be used. This video also displays the state of the switch on the micro:bit LED display using 1 and 0. Code below.
from microbit import *
x=0
while True:
x = pin11.read_digital()
display.show(str(x))
if x == 0:
pin12.write_digital(0)
pin8.write_digital(0)
else:
pin12.write_digital(1)
pin8.write_digital(1)
sleep(10)