I am learning python and I do coding in pycharm so which compiler is best I.e. similar to pycharm in codechef??
Pycharm is best IDE for python or you can use Microsoft visual studio also
Microsoft Visual Studio Code (Editor) is awesome for CP (at least for me). It comes with Auto-Complete Tools and a built-in Terminal so that you can use commands to really code fast.
If in case you are learning Python to use it as Language in CP, do not use PyCharm. PyCharm is kinda heavy and it is best useful when you are making Projects in Python.
If you are learning Python to make cool projects, then you may use either of them.