AI engineering glossary · Python core

What is assignment?

Assignment: The operation that binds a name to a value using the = sign. The right side is evaluated first, and the resulting object is then linked to the name on the left. In Python assignment does not copy data; it makes the name point at an object.

Level: beginnerTopic: Python core

Assignment: an example

x = 3 + 4 evaluates 3 + 4 to 7 and then binds the name x to 7.

Related terms

More Python core terms

Where you learn it

Assignment is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.