You can choose to run your python locally on an IDE of your choosing or run it in a browser thanks to Raspberry Pi’s online IDE.

https://projects.raspberrypi.org/en/projects/rocket-launch/0