How to use an array to set coordinates in a function near(x, coord)?

I try to use a list to set coordinates for DirichletBC method, but I always get a mistake in near() function. Here an example:

from dolfin import *
nx = 10
ny = 10
mesh = RectangleMesh(Point(0, 0), Point(nx, ny), nx, ny)
V = FunctionSpace(mesh, 'CG', 1)
coord = [1.0, 1.0]
point = DirichletBC(V, 5.0, "near(x[0], coord[0]) && near(x[1],coord[1])", "pointwise")

However when I use:
point = DirichletBC(V, 5.0, "near(x[0], 1.0) && near(x[1], 1.0)", "pointwise")
I don’t get any mistake.

How can I set coordinates using array to use it in a function near()?

Here the compiler output:


EDIT:
It works: point = DirichletBC(V, 5.0, "near(x[0],"+str(coord[0])+") && near(x[1],"+str(coord[1])+")", "pointwise")