import time
from machine import Pin
time.sleep(0.1) # Wait for USB to become ready
num=bin(3)
a=Pin(4,Pin.OUT)
b=Pin(3,Pin.OUT)
c=Pin(2,Pin.OUT)
d=Pin(1,Pin.OUT)
e=Pin(0,Pin.OUT)
num=num[2:]
led=[a,b,c,d,e]
if len(num)<5:
z=5-len(num)
n=("0"*z)+num
print(n)
for i in range(0,5):
if n[i]=="1":
led[i].toggle()