best code editor for python on mac code example

Example 1: 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

Example 2: best code editors for micropython

I prefer to use atom code editor.

It supports a whole lot of languages including python, c, c++, c sharp
												java, javascript, coffescript 
                                                and it goes on.(It supports more
                                                than 50 languages)
                                                
and unlike jetbrains pycharm or anything else, Its totally free.
you can download custom packages for any languages or for specific thing like 
game development.

it is open source and you can customise it's built in themes and add
code snippets on your own(https://www.hongkiat.com/blog/add-custom-code-snippets-atom/#:~:text=Use%20built%2Din%20code%20snippets&text=To%20see%20all%20available%20snippets,editor%20without%20any%20further%20hassle.)
in the editor itself. no need to change the source code(you can do that if u want)