It always bothers me. I hope for the help of my native English who can speak their language.
Let's say I have:
x: = 5
I can say that "x is assigned 5". Good. But then I put forward an excuse. Which of the following expresses what is happening: "5 is assigned x" or "x is assigned 5"?
I can get one intuition by drawing an analogy with “name is assigned to value”, so that means “x is assigned to 5”. But then I can also say that "the value is assigned to the name" without "to", which indicates that "5 is assigned x" will be correct, and I am absolutely sure that this is the opposite.
source
share