syntax question

Sharan Basappa sharan.basappa at gmail.com
Sat Jun 2 07:08:31 EDT 2018


Can anyone please tell me what the following line in a python program does:

line = lambda x: x + 3

I have pasted the entire code below for reference:

from scipy.optimize import fsolve
import numpy as np
line = lambda x: x + 3
solution = fsolve(line, -2)
print solution



More information about the Python-list mailing list