Toddler in Fenics

Please make sure that you follow Read before posting: How do I get my question answered?
and look at the minimal working examples there.

It is very hard to help you with your problem ( since the code is not executable as the function spaces, meshes etc are not defined).