In Python, as in any other programming language, there are things called "variables".
We can imagine variables as boxes: inside each box there is a value, for example a number or a text.
Each box has a label on top, with a name.
So a variable has a name and a value in Python, while in other programming languages it also has a defined type - like in C or C++ - but we are currently talking about Python.
To define a variable we use the following syntax:
x = 2
name = "valerio"
If the variable is of boolean type, the story changes: a boolean variable is a variable that can only have two values: True or False. Therefore it is useful to check whether a condition is true or false.
Below, examples of boolean variables:
variable_true = True
variable_false = False
Numeric variables can also be decimal:
decimal = 1.2
decimal = 1.22
A variable is declared in this way: variable name = variable value Python makes everything super simple thanks to its syntax.
LearnPython.org - Variables and Types
Aulab.it - Variables and data types in Python