Complete the code to import the RPi.GPIO library with the common alias.
import [1] as GPIO
The RPi.GPIO library is imported using import RPi.GPIO as GPIO to allow easy access with the alias GPIO.
Complete the code to set the GPIO numbering mode to BCM.
GPIO.setmode([1])Setting the mode to GPIO.BCM tells the library to use the Broadcom chip's pin numbering.
Fix the error in the code to clean up GPIO settings at the end.
GPIO.[1]()The correct method to reset GPIO pins is GPIO.cleanup(). Other options do not exist or cause errors.
Fill both blanks to set up a GPIO pin 18 as an output.
GPIO.setup([1], [2])
Pin 18 is set as an output using GPIO.setup(18, GPIO.OUT).
Fill all three blanks to set pin 23 as input with a pull-up resistor.
GPIO.setup([1], [2], pull_up_down=GPIO.[3])
Pin 23 is set as input with a pull-up resistor using GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP).