I have a dictionary defined say D, I also have initialized it.
When I say len(D), some time it gives me correct answer, but some times it throws me error saying
UnboundLocalError: local variable 'len' referenced before assignment
can anybody tell me why is this error. Am I wrong some where.