# Dynamically Typed Language

> A language that checks types as the code runs, not before.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** Dynamic Typing, Dynamically Typed

## Think of it like

Think of it like a plain box. You can put a toy in it today and a sock in it tomorrow.

## Definition

A dynamically typed language works out each value's type while the program runs. A variable can hold a number now and text later. You write less, and you can try ideas fast. The catch is that a type mistake only shows up when that line runs, maybe in front of a user. Python, JavaScript, Ruby and PHP work this way.

## Example

Emma stores 30 in age, then "thirty". Python is fine with both, so the slip only shows when she tries to add 1.

## Example code

```python
age = 30
age = "thirty"
print(age)
# thirty
```

The same variable holds a number, then text, with no complaint.

## Why it matters

Quick to write, so it suits scripts and early ideas. Big projects often add type checks later.

## Common mistake

Thinking it has no types at all. Every value still has a type; it is just checked late.

## Three principles

- **Checked while running.** A type slip shows on that line only.
- **Flexible boxes.** A variable can change what it holds.
- **Quick to write.** No type labels to type out.

## Related terms

- [Statically Typed Language](https://learn.benibix.com/term/development/statically-typed-language)
- [Data Type](https://learn.benibix.com/term/development/data-type)
- [Python](https://learn.benibix.com/term/development/python)
- [Interpreted Language](https://learn.benibix.com/term/development/interpreted-language)
- [Strongly Typed Language](https://learn.benibix.com/term/development/strongly-typed-language)

## Told apart from

- [Static vs Dynamic Typing](https://learn.benibix.com/compare/static-vs-dynamic-typing): Both kinds have types. A static language checks them before the code runs; a dynamic one waits until each line runs.

## Taught in

- [Static and Dynamic Typing](https://learn.benibix.com/learn/development-languages/static-and-dynamic-typing): Programming Languages, 3/12

---

Source: https://learn.benibix.com/term/development/dynamically-typed-language
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
