Creating a constant scalar is straightforward,
vector = VectorElement("Lagrange", triangle, 2)
scalar = FiniteElement("Lagrange", triangle, 2)
# scalar constant
c = Constant(triangle)
# vector coefficient
f = Coefficient(vector)
But, how would I create a constant vector? For example for a constant body force.