Use the male/female Dupont wires to make the connections.
Added:
> >
You find a description of the MicroPython driver in the doc again. The ADC works for a range of 0..1V only while the potentiometer produces signal levels of 0..3.3V. A signal attenuator allows adapting the ranges. It must be set to ADC.ATTN_11DB for our 0..3.3V slider.
Added:
> >
from machine import ADC,Pin
from time import sleep_ms