Often used in formal or academic contexts.
El profesor me asignó una tasque que debo entregar la próxima semana.
The teacher assigned me a task that I must submit next week.
La tarea que me asignaron es más difícil de lo que esperaba, pero lo intentaré.
The task assigned to me is more difficult than I expected, but I will try.