Error in the list conversion in Python

0

I have the following problem:

lista1 = [3,4,5]
list(map(lambda x: x**3, lista1))

You gave this error:

TypeError Traceback (most recent call last)
<ipython-input-14-5e26f3f7b396> in <module>()
      2 lista1 = [3,4,5]
      3 lista2 = (map(lambda x: x**3, lista1))
----> 4 print(list(lista2))

TypeError: 'list' object is not callable

Could someone explain the reason for this error?

    
asked by anonymous 19.09.2018 / 22:27

1 answer

0

@fernandosavio just hit the button marked in red in the jupyter panel.

    
20.09.2018 / 18:39