answered 10 years ago
Here is a way:
sage: R.<x,y>=QQbar[] sage: R({(1,1):2}) 2*x*y sage: R({(1,1):2,(3,4):77}) 77*x^3*y^4 + 2*x*y