What does assignment mean?

Giving a variable a value with =, as in x = 10. The right-hand side is worked out first, then stored under the name on the left.

Also written as: assign, assigned, assigning

In a lesson

speed = 60 stores the number 60 under the name speed. This is called assignment. From then on, writing speed means 60. The = is not "equals" as in maths; it means "put this value into this name". Read it right to left: take 60, store it in speed.

Learn it

Used in

and 11 more lessons.

Do the lesson in the simulator

All glossary terms