To code in Python, you must install Python before you can begin. Install Python from https://www.python.org/downloads/.
You also need a Python text editor (Integrated Development Environment or IDE). The Mu editor is the easiest to use with PyGame Zero, CircuitPython and micro:bit. It communicates directly with the circuit boards to download code. Download the Mu IDE from https://codewith.mu/en/download.
Download the LEGO Education SPIKE Prime software from https://education.lego.com/en-us/downloads/spike-prime/software.
The EV3 is coded using Microsoft Visual Studio Code ( https://code.visualstudio.com/download ).
Adafruit has produced a range of circuit boards that are coded in CircuitPython, an offshoot of MicroPython (https://www.adafruit.com/). The Circuit Playground Express (CPX), Circuit Playground Bluefruit, Crickit and Metro M4 Airlift boards are only some of their CircuitPython boards.
CircuitPython is supported very well by Adafruit and they have an amazing learning system with documentation and CircuitPython example code for all their products. Almost all peripheral devices can be purchased cheaply on AliExpress and other supplier sites (see the Digital Equipment list)
See https://microbit-micropython.readthedocs.io/en/v2-docs/ for information on coding the micro:bit in Python.
However, there is limited documentation on attaching peripherals such as sensors, motors and servos to the micro:bit.
There are many third-party manufacturers who have developed robotics kits (including Kitronics, DF Robot, Adafruit and Grove).
However, virtually all the coding is done in block coding, particularly MakeCode (see the Block Coding page).
There are very few code samples in Python, and the coding is almost always difficult.