Pybricks is Python coding for smart LEGO® hubs. Run MicroPython scripts directly on the hub, and get full control of your motors and sensors.
Pybricks runs on LEGO® BOOST, City, Technic, MINDSTORMS®, and SPIKE®. You can code using Windows, Mac, Linux, Chromebook, and Android.
You can restore the original LEGO firmware with ease. This is very well coded, it even has a dark mode!

https://pybricks.com/

https://code.pybricks.com/