import RPi.GPIO as gpio
import time

ledPin = 16 #GPIO23

#Set up RPi GPIO
def setup():
    gpio.setmode(gpio.BOARD)
    gpio.setup(ledPin, gpio.OUT)

def blink(n):
    for i in range(0, n):
        gpio.output(ledPin, True)
        time.sleep(0.5)
        gpio.output(ledPin, False)
        time.sleep(0.5)

import RPi.GPIO as gpio
import time

ledPin = 16 #GPIO23

#Set up RPi GPIO
def setup():
    gpio.setmode(gpio.BOARD)
    gpio.setwarnings(False)
    gpio.setup(ledPin, gpio.OUT)

def blink(n):
    for i in range(0, n):
        gpio.output(ledPin, True)
        time.sleep(0.5)
        gpio.output(ledPin, False)
        time.sleep(0.5)

Disable warnings for GPIO channels...
Disable warnings for GPIO channels...

  import RPi.GPIO as gpio
  import time
  
  ledPin = 16 #GPIO23
  
  #Set up RPi GPIO
  def setup():
      gpio.setmode(gpio.BOARD)
+     gpio.setwarnings(False)
      gpio.setup(ledPin, gpio.OUT)
  
  def blink(n):
      for i in range(0, n):
          gpio.output(ledPin, True)
          time.sleep(0.5)
          gpio.output(ledPin, False)
          time.sleep(0.5)
  
Disable warnings for GPIO channels...
## Code Before:
import RPi.GPIO as gpio
import time

ledPin = 16 #GPIO23

#Set up RPi GPIO
def setup():
    gpio.setmode(gpio.BOARD)
    gpio.setup(ledPin, gpio.OUT)

def blink(n):
    for i in range(0, n):
        gpio.output(ledPin, True)
        time.sleep(0.5)
        gpio.output(ledPin, False)
        time.sleep(0.5)

## Instruction:
Disable warnings for GPIO channels...
## Code After:
import RPi.GPIO as gpio
import time

ledPin = 16 #GPIO23

#Set up RPi GPIO
def setup():
    gpio.setmode(gpio.BOARD)
    gpio.setwarnings(False)
    gpio.setup(ledPin, gpio.OUT)

def blink(n):
    for i in range(0, n):
        gpio.output(ledPin, True)
        time.sleep(0.5)
        gpio.output(ledPin, False)
        time.sleep(0.5)
