The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Why isn’t this working in Python?

Why isn’t this working in Python?

0
Votes
1
Answer

 

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 Answer

0
Votes

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.

×
Online Data Science Training
SAVE 60%