An assignment is a task that someone in authority has asked you to do. The word assignment is just the noun form of the common verb assign, which you use when you want to give someone a duty or a job.
something assigned, as a particular task or duty: She completed the assignment and went on to other jobs. a position of responsibility, post of duty, or the like, to which one is appointed: He left for his assignment in the Middle East.