How to control the GPIO pins with python?

Hello, How can i control the GPIO pins on the BPi M2 Zero with python?

Aditional details OS: Armbian 23.05.0-trunk Host: Banana Pi BPi-M2-Zero Python version: 3.11.2