Find errors and rewrite the same after correcting the following code:
d1.len()
The syntax of len() function is len(dict).
len()
len(dict)
The corrected code is:
len(d1)