October 22, 2024
Chicago 12, Melborne City, USA
python

Python line showing list is not callable error in google colab


I have ran this line on replit and it worked fine but its showing error in colab:

----> 1 print(list(range(1, 100)))  # Prints whole range of list
TypeError: 'list' object is not callable

I have tried to fix by changing name of variables that I given as ‘list’ but still not fixing.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video