Assignment and Variables
Variables store values. The process of declaring a variable that stores a value is called assignment.
In python a variable is created when a value is assigned.
Here is an example:
#Assignment x = 5 print(x) y = "text" print(y) type(y)
In the example above we created two variables – x,y.
- X is an integer.
- Y is a string.
Try to assign a variable and check its type
#Assign a variable here: