02Python Programming

Variables

Easy10MIN

What is a variable?

Variables have a name and a value in programming. Usually, the value varies during program execution. In Python, setting a variable is simple, the syntax is:

PY
1variable_name = variable_value
1 / 6
Hakatemia Pro

Learn to hack — start here

Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.