0% found this document useful (0 votes)
17 views

What Is A Dynamically Typed Language?

Python is a dynamically typed language because it checks data types during execution rather than before execution like statically typed languages. In dynamically typed languages like Python and JavaScript, operations between different data types are allowed and implicit type conversions may occur, while in strongly typed languages like Python, operations between incompatible types will result in errors.

Uploaded by

ameetamarwadi
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

What Is A Dynamically Typed Language?

Python is a dynamically typed language because it checks data types during execution rather than before execution like statically typed languages. In dynamically typed languages like Python and JavaScript, operations between different data types are allowed and implicit type conversions may occur, while in strongly typed languages like Python, operations between incompatible types will result in errors.

Uploaded by

ameetamarwadi
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

 What is a dynamically typed language?

Before we understand what a dynamically typed language, we should learn about what typing
is. Typing refers to type-checking in programming languages. In a strongly-typed  language,
such as Python, "1" + 2 will result in a type error, since these languages don't allow for "type-
coercion" (implicit conversion of data types). On the other hand, a weakly-typed  language,
such as Javascript, will simply output "12" as result.
Type-checking can be done at two stages -
• Static - Data Types are checked before execution.
• Dynamic - Data Types are checked during execution.
Python being an interpreted language, executes each statement line by line and thus type-checking is done on the fly, during execution. Hence, Python is a Dynamically Typed language.

You might also like