Complete the code to set the GPIO mode to BCM numbering.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.[1])
BCM mode uses the Broadcom chip's pin numbers.
Complete the code to set up pin 18 as an output using BCM numbering.
GPIO.setup([1], GPIO.OUT)Pin 18 is a common GPIO pin in BCM mode.
Fix the error in the code to set the GPIO mode to BOARD numbering.
GPIO.setmode(GPIO.[1])BOARD mode uses the physical pin numbers on the Raspberry Pi header.
Fill both blanks to create a dictionary mapping physical pins to BCM pins for pins 7 and 11.
pin_map = {7: [1], 11: [2]Physical pin 7 maps to BCM 4, and physical pin 11 maps to BCM 17.
Fill all three blanks to set up physical pin 12 as output, set it high, and then clean up.
GPIO.setmode(GPIO.[1]) GPIO.setup([2], GPIO.OUT) GPIO.output([3], GPIO.HIGH) GPIO.cleanup()
Use BOARD mode for physical pin numbering, set up pin 12 as output, then set it high.
