def cdd(d, k):
if not isinstance(k, list):<EOL><INDENT>k = [k]<EOL><DEDENT>for i in k:<EOL><INDENT>if i in d:<EOL><INDENT>d.pop(i)<EOL><DEDENT><DEDENT>
Conditionally delete key (or list of keys) 'k' from dict 'd