We use 'assign' when a person gives a job or task to someone else. It means telling someone to do a certain work or duty.
The teacher assigns homework every day.
I was assigned a new job at work.
You use 'assign' when you give a number, name, or value to something. It means you choose or set something for it.
Please assign a number to each group.
They assigned a price to the old car.
In legal use, 'assign' means to transfer ownership or rights to another person officially. It is often used with property or patents.
He assigned his property to his children.
The company assigned the patent rights to her.
You use 'assign' when you pick or choose a person or thing for a particular job or use. It means deciding something for a special need.
They assigned him to the new project team.
The manager assigned seats to the guests.
Teachers use 'assign' when they give homework or projects to students. It means asking students to complete some work.
The teacher assigned us a reading page.
Students were assigned a new essay to write.
'Assign' in computing means to store or connect a value to a variable. This helps the computer remember the data for later use.
The program assigns a number to each user.
You should assign the value before using it.