Category: Python interview question
-
Is Python dynamically typed language??
Yes, Python is a dynamically typed language. Now to understand why Python is dynamically typed language, we should discuss a bit about what statically type and dynamically typed means. In a statically typed language, type of the variable is declared at the declaration of a variable itself. For example, in Java we can declare a…
-
Is Python interpreted, compiled or both?
Let us first see is short what is ‘compile’ and ‘interpreted’ means. In the simple definition ‘compile‘ means to convert a high-level language program into a binary executable machine code (CPU instructions). The result of ‘compile’ is a file which can be executed directly. In the simple definition, ‘interpreted‘ means reading the source code one…