On my RasPi's, I always install geany, which I use as my generic code editor for 'C', Java, Python, shell scripts, etc.
It has pretty printing capability.
As has been mentioned, there are two main types of code: compiled and interpreted (scripting). Python is mentioned as an interpreted language. Another such is Java. Have written Java some 17 or 18 years ago on an old Windows XP machine that still runs on Linux and Windows 10. The real challenge with...