I have copied below snipped from Python documentation and executed in my jupyter notebook but throwing error "list" is not callable
squares = list(map(lambda x: x**2, range(10)))
I have copied below snipped from Python documentation and executed in my jupyter notebook but throwing error "list" is not callable
squares = list(map(lambda x: x**2, range(10)))