bet IDE for python code example
Example: best python ide
PyCharm - https://www.jetbrains.com/pycharm/ # Only for python
Visual Studio Code - https://code.visualstudio.com/ # Personally use and can work for tons of different languages (Highly Reccommend)
IDLE # default ide comes with python, its pretty good comes with python documentation