Raspberry Pi - gpiozero Library
Find the bug in this snippet:
from gpiozero import Button
button = Button(3)
if button.is_pressed:
print("Pressed")
else:
print("Not pressed")