Explain why python is known as dynamically typed language?

: 2630
Paper : Python FAQ (Frequently Asked Questions and answers) for freshers | Platform : Object-oriented programming Language | Category : Programming FAQs

Before jumping into the concept of dynamically typed language first, we must be familiar with the concept of typing. Typing refers to checking the data types of the variables. There are two ways through which we can check the data types:

  • Static: The type-checking is done before the execution of the program.
  • Dynamic: The type-checking is done during the execution of the program.

In python, there is no need to define the types of variables. It allows to directly use the variables as its type-checking will be done during the execution of the program. The interpreter checks the program line-by-line and also examines the data type of the variable.