I can understand the fact whythat Java needs both a compiler and an interpreter. It compiles source code to byte codebytecode and then a virtual machine (on windowsWindows, on linuxLinux, on androidAndroid, etc.) translates byte codethat bytecode to amachine code thatfor the current architecture can understand.
But why does Python needsneed both a compiler and an interpreter? Why not just using interpretation sinceSince Python is not platform independent., why not just use interpretation? As far as I know, you cannot execute a Python program (compiled to bytecode) on every machine, such as on windows,any Windows or on linuxLinux machine without modification. Or am I wrong?
Please help