I'm trying to iterate over a dictionary in order to delete all items where the key is a number.
dict= {'hello':'3', 'baby':'5', '33':'6'}
for k in dict.keys():
if k.isdigit():
del dict[k]
The result i need is this:
dict={'hello':'3', 'baby':'5'}
I use the code above but it doesn't work? Can somebody help me?