I would start the way SirDice suggestion: Open a shell, simply say "python", and you should be inside the python shell. Say "print(3.14)", and you should see the number printed. Note: The command "python" by itself may not work, but python3 will, and if you installed it recently, python3.11 definitely will. Set some variables, write an if statement, it should all work. Once you have that, write a small python script (hello world style), and start it with the shebang line:
#!/usr/local/bin/python3
mark the script as executable with "chmod a+x ...", and it should run.
Once you have those first steps done, then maybe install a comfortable development environment, such as VS Code, if you enjoy that. There are many development styles.