import RPi.GPIO as GPIO
import time
PIN = 24
GPIO.setmode(GPIO.BCM)
GPIO.setup(PIN, GPIO.IN)
GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
try:
    while True:
        input_state = GPIO.input(PIN)
        if input_state == False:
            print('Button Pressed')
            time.sleep(0.2)
except KeyboardInterrupt:
    GPIO.cleanup()

b9f7161d72afa32bdb2602361ca0deacf5428c39
<mask token>

<mask token>
GPIO.setmode(GPIO.BCM)
GPIO.setup(PIN, GPIO.IN)
GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
try:
    while True:
        input_state = GPIO.input(PIN)
        if input_state == False:
            print('Button Pressed')
            time.sleep(0.2)
except KeyboardInterrupt:
    GPIO.cleanup()

<mask token>
PIN = 24
GPIO.setmode(GPIO.BCM)
GPIO.setup(PIN, GPIO.IN)
GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
try:
    while True:
        input_state = GPIO.input(PIN)
        if input_state == False:
            print('Button Pressed')
            time.sleep(0.2)
except KeyboardInterrupt:
    GPIO.cleanup()

import RPi.GPIO as GPIO
import time
PIN = 24
GPIO.setmode(GPIO.BCM)
GPIO.setup(PIN, GPIO.IN)
GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
try:
    while True:
        input_state = GPIO.input(PIN)
        if input_state == False:
            print('Button Pressed')
            time.sleep(0.2)
except KeyboardInterrupt:
    GPIO.cleanup()
