RuntimeError: You must setup() the GPIO channel first
snippet in c

RuntimeError: You must setup() the GPIO channel first

user3233

The line that reads
    if GPIO.input(23 == False):
Should be
	if GPIO.input(23) == False: