Find errors and rewrite the same after correcting the following code:
pop d1[4]
Th syntax of pop() method is dictname.pop(key).
pop()
dictname.pop(key)
The corrected code is:
d1.pop(4)