Any Better way to set translate X Y different value in expression(all dimension)?


Hi there,
This is the way I assign different value to translate x and y in expression(all dimension)

if dimension==0:
	ret=10#this is x value
	ret=20#this is y value

I was wondering if there is more intuitive way to assign different values to it. ex assign an array value to ret?