Last answered:

03 May 2020

Posted on:

03 May 2020

0

Why isn't this working in Python?

  a = list(range(10))  
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-16-d307b07a862b> in <module>
----> 1 a = list(range(10))

TypeError: 'list' object is not callable
1 answers ( 0 marked as helpful)
Posted on:

03 May 2020

0
I found the answer. I guess when you type the wrong code you have to click stop (interrupt the kernel), rewrite the code and then run it again. When I did that it worked. Hope it will help someone sometimes.

Submit an answer