How to Solve NameError: name 'LED' is not defined -- gpiozero

Solution: Import the 'LED' module

To Solve the error, add the following line to the top of your code.

from gpiozero import LED

 

For more information:
Python gpiozero LED