# Coefficients of polynomial of fixed degree [closed]

How can we extract the coefficient of any polynomial as a fixed degree polynomial? For example, if we have $a=2+3*x$, then a.polynomial().coefficient() will extract (2,3), but I need the polynomial of degree 3, and the output will be (2,3,0,0).