Assignment
In order to place a value into a variable you use the “=” sign. This is called assignment. When python sees an assignment it will copy the result of the right hand side and store it in a variable on the left. This is why you must always have a variable name on the left.
x = 6 z = 2 * x print z
Try the above code. Line 3 is taking the value of x, which is 6, and multiplying it by two before copying the result into a new variable called z. Change the value of x to be 12 and see what the result is in order to move onto the next task.
Output: (clear)











