Redefined builtin function len() in spyder like len = 100; Now when I am trying to find the length of the string it says "'int' object is not callable" How to undo this change or correct this?
Asked
Active
Viewed 54 times
1 Answers
1
Since len is an inbuilt python function, you should avoid using that as a variable. try prefixing your 'len' with '_' and use '_len = 10' instead of just 'len'.

Dylan
- 625
- 1
- 9
- 21
-
But I just did and assigned it a value , len = 100 and when I am trying to find the length of the string it says 'int' object is not callable" – Mar 17 '19 at 16:32