SWI Prolog Janus documentation py_version.
SWI Prolog screenshot shows Python 3.9.6 on this computer running macOS (sometimes 3.12.x):
SWI Prolog screenshot shows Python 3.10.12 on this computer running Ubuntu 22.0.4 LTS: