Screen Link: https://app.dataquest.io/m/49/lambda-functions/7/first-class-functions
floats = list(map(float, not_floats))
What I expected to happen: It should covert the map object into list as also mentioned in the solution provided by dataquest in this link excercise.
What actually happened: ```—> 18 floats = list(map(float, not_floats))
TypeError: ‘map’ object is not callable``` to format properly
Other details: Please help
This construction shall work.
>>> floats = list(map(float, [1,2,3]))
[1.0, 2.0, 3.0]
Try to reload the session, probably not all packages were loaded properly?
This very much looks like you overwrote the
map variable with something else.
del map before your code.