AI engineering glossary · Python core
What is dynamic typing?
Dynamic typing: A property of languages where a variable has no fixed type; the type belongs to the value it currently refers to, and is checked while the program runs. In Python the same name can point to an int now and a string later, which is flexible but can hide mistakes until execution.
Dynamic typing: an example
x = 5 then x = 'five' is legal. Running 'five' + 5 fails only at that line with a TypeError.
Related terms
More Python core terms
Where you learn it
Dynamic typing is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.