Https://dphi.tech/lms/learn/introduction-to-python-basics-for-data-science/135

Question number 13:

d = {“john”:40, “peter”:45}

print(list(d.keys()))

It results into error : TypeError: ‘list’ object is not callable.
I tested it on Google Colab.

Hi! @jatindera
the error is occurring since you have copy pasted it the " " <— are going UTF-8 format so resulting is this error instead you can type it which will be more better or there is sample of same attach below you can check it . thanks :slight_smile: have a nice day

Happy Learning !

1 Like