Syntax problem in printing RHS of variational formulation

L = inner(f, v) * dx 
print(assemble(L).array())

It doesn’t work. I want to print the values of L.

Please see Read before posting: How do I get my question answered?.