def ledToggle(): if led.is_lit: led.off() ledButton["text"]="Turn Your LED on" else: led.on() ledButton["text"]="Turn your LED off"