Are Python programs compiled before executing? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Are Python programs compiled before executing?

I know that Python is a interpreted language, but doesn't it need to be compiled before executed? I've saw that it's compiled into bytecode then interpreted. Am I wrong?

6th Jan 2018, 1:09 PM
Luis Lopes
Luis Lopes - avatar
3 Réponses
6th Jan 2018, 2:11 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
I think it is compiled into a bytecode, so not machine code but it’s still technically compiled before it is interpreted.
6th Jan 2018, 3:27 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 1
This doubt came from a question in a challenge. Its correct answer was false.
6th Jan 2018, 4:38 PM
Luis Lopes
Luis Lopes - avatar