yeah im p sure you install python or python3 via the fedora package manager to start. Then you create a script, foo.py or something. In there you put the actual code. When that looks good, you can run it by going >python3 /path/to/foo.py
additional libs can be a bit of headache with python specifically, but most use the helper tool pip or pipx, which can also be installed through the package manager
if im off on anything here lmk, working from inference and memory as im maining nixos atm, where the install process is a bit different :P