How To Fix The Error :'range' Object Is Not Callable In Python3.6
my code looks like: list_var = ['rh','temp','tl','Tt','DPD','PAR'] for L in range(1, len(list_var)): for subset in itertools.combinations(list_var, L): f = 'inf ~ {}
Solution 1:
I can reproduce the issue when assigning the range
name to a range
instanciated object:
>>> range = range(10)
>>> range(1)
Traceback (most recent call last):
File "<string>", line 301, in runcode
File "<interactive input>", line 1, in <module>
TypeError: 'range'objectisnotcallable
you probably reassigned the name earlier in your code, triggering this exact error.
A quick & dirty fix is:
delrange
Post a Comment for "How To Fix The Error :'range' Object Is Not Callable In Python3.6"