length function dictionary python code example Example: dictionary python length print(len(thisdict))