Len function definition error

Hello,

I am trying to use the function len() that returns the number of items in the container e.g. list.
However the len () function in google colab seems to take it as a function that converts a number or string to an integer, or return 0 if no arguments. Pls help.

Regards

Hi @priyanka1rawat,

There seems to be an issue here, i would suggest you to restart the runtime environment for google colab, and execute these two cells once again.
The help tab in the right appears to be for int().
I’m not sure but this seems to be a macro definition, because it’s taking len() as int() in both these cells.

Thanks.

I restarted the runtime and the runtime type was none by default.
It worked.