when i try to declare the list as
ler = list()
i get the error list object is not callable!
Why i m getting this error?
List creation in python3
Seems like you’ve shadowed the built-in name list by an instance name somewhere in your code.
Now by overshadowing I mean. If you look at the 1st and 2nd cell there is no error but in 3rd cell when I assigned ‘list’ keyword another value, it resulted in error in the 4th cell.
You could refer this link - https://stackoverflow.com/questions/31087111/typeerror-list-object-is-not-callable-in-python/31087151
And if the error is still there just use "ler = [] "
this will never give an error
Hi Hardik, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.