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.

Level: beginnerTopic: Python core

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.