How can I create a new dictionary from an existing dictionary to include only key and values where values are numeric?
Example dictionary:
simple_dict = {
'a': 1,
'b': 2,
'c': 3,
'd': 'John',
'e': 4,
'f': 'Sandra'
}
What I have so far:
new_dict = {key: value for key, value in simple_dict.items() if }
I've tried using something like isdigit() or isnumeric() but keep receiving errors.