import serial
ser = serial.Serial('/dev/ttyACM0',9600, timeout= 1)

while 1:
    a = int(input('Enter 0 or 1: '))
    print(a)
    if a == 1:
        ser.write(b'1')
        print('LED ON')
    if a == 0:
        ser.write(b'0')
        print('LED OFF')
    #else:
        #print('Input Error!')

831d58ff136a96c50f1260d620223e5103a63e17
<mask token>

<mask token>
while 1:
    a = int(input('Enter 0 or 1: '))
    print(a)
    if a == 1:
        ser.write(b'1')
        print('LED ON')
    if a == 0:
        ser.write(b'0')
        print('LED OFF')

<mask token>
ser = serial.Serial('/dev/ttyACM0', 9600, timeout=1)
while 1:
    a = int(input('Enter 0 or 1: '))
    print(a)
    if a == 1:
        ser.write(b'1')
        print('LED ON')
    if a == 0:
        ser.write(b'0')
        print('LED OFF')

import serial
ser = serial.Serial('/dev/ttyACM0', 9600, timeout=1)
while 1:
    a = int(input('Enter 0 or 1: '))
    print(a)
    if a == 1:
        ser.write(b'1')
        print('LED ON')
    if a == 0:
        ser.write(b'0')
        print('LED OFF')

import serial
ser = serial.Serial('/dev/ttyACM0',9600, timeout= 1)

while 1:
    a = int(input('Enter 0 or 1: '))
    print(a)
    if a == 1:
        ser.write(b'1')
        print('LED ON')
    if a == 0:
        ser.write(b'0')
        print('LED OFF')
    #else:
        #print('Input Error!')
