Reputation: 11
i was try to run this code and i did'nt find any problem with my code, but the google colaboratory called it error
this is the code :
start = int(input("Start : "))
end = int(input("End :"))
for i in range (start, end+1):
print(i)
the error message :
TypeError Traceback (most recent call last)
<ipython-input-3-bc333f731d78> in <module>()
----> 1 start = int(input("Start : "))
2 end = int(input("End :"))
3 for i in range (start, end+1):
4 print(i)
TypeError: 'str' object is not callable
Upvotes: 1
Views: 324
Reputation: 262149
My guess, at some point in you code, you did:
int = "..."
or:
input = "..."
thus replacing the builtin function
Upvotes: 1