# Variables and types — Kotlin

Source: https://www.geekswithgeeks.com/en/kotlin/kotlin-variables

> Explain Variables and types, run a focused example, and inspect the result.

## The essential idea

**Variables and types** makes a Kotlin program more expressive while keeping the code readable. Identify the value, the rule, and the result before you try to remember the syntax.

## See the Kotlin path

This topic is one clear step from source code to useful output.

![Kotlin source code passing through compiler to output.](assets/figures/kotlin/kotlin-learning-map.svg) — Figure 2.1 — Keep the program path visible.

## A practical habit

For **Variables and types**, run a very small example and change only one part. The compiler and output will show whether your explanation is correct.

Quick check

**Quiz:** How should you practise Variables and types?

- [x] Run a focused small program.
- [ ] Memorize without compiling.
- [ ] Ignore errors.

*Answer:* Run a focused small program.. Small experiments make cause and effect visible.
