answered 9 years ago
You can just use the list or vector functions
list
vector
x=2*i+i*j list(x) # produces [0,2,0,1] vector(x) # produces (0,2,0,1)