The default Python implementation is usually installed by default. To install it manually, use the following procedure.
Procedure
To install Python 3.12, enter:
# dnf install python3Verification
Verify the Python version installed on your system:
$ python3 --version