First time here? Check out the FAQ!
answered 2018-03-03 12:41:59 +0100
p.variables() returns a tuple which contains the variables of p, so your function could be written:
p.variables()
p
def f(q): return q*q.variables()[0]