https://docs.python.org/3/library/idle.html#automatic-indent...
So not even you are reading the documentation?
And if IDLE is not good enough for students, Komodo IDE exists for 20 years, VS and VSCode also do a quite good job, PyCharm, as do Emacs and vim.
It isn't as if the alternative JavaScript and Go code is being written without adequate tooling.