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

Dynamically - Typed - Interpreted - Language

Python is a dynamically typed language where type checking occurs during execution rather than before as in statically typed languages. As an interpreted language, Python executes each statement line by line and performs type checking on the fly, making it a dynamically typed language. Interpreted languages like Python, Javascript, R, PHP and Ruby run programs directly from source code without first compiling it like compiled languages.

Uploaded by

Inderpal Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Dynamically - Typed - Interpreted - Language

Python is a dynamically typed language where type checking occurs during execution rather than before as in statically typed languages. As an interpreted language, Python executes each statement line by line and performs type checking on the fly, making it a dynamically typed language. Interpreted languages like Python, Javascript, R, PHP and Ruby run programs directly from source code without first compiling it like compiled languages.

Uploaded by

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

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 -
1. Static - Data Types are checked before execution.
2. 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.

Interpreted language
An Interpreted language executes its statements line by
line. Languages such as Python, Javascript, R, PHP and
Ruby are prime examples of Interpreted languages.
Programs written in an interpreted language runs
directly from the source code, with no intermediary
compilation step.

You might also like