Lambda function , lists

v = [1, 2, 3]

def g (a, b ,)
return m(a, b)

print( g ( 1, 1, lambda x, y : v [x :y +1 ]))

The output is [2] .can someone please explain how?