Raspberry Pi - gpiozero Library
What will be the output of this code?
from gpiozero import LED led = LED(17) led.off() print(led.is_lit)
from gpiozero import LED led = LED(17) led.off() print(led.is_lit)
led.off().is_litis_lit property returns True if the LED is on, otherwise False.is_lit is False [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions