Это подойдет вам:
def removekey(d, key_list):
r = d.copy()
for key in key_list:
r.pop(key)
return r
keys_to_delete = (0,2)
dict_a = dict_a = {0: 277.8646380131756, 1: 237.68252216827375, 2: 223.04941947616766,
3: 9.058932480795093, 4: 175.74552982744078, 5: 4.834328204426816,
6: 180.5798580318676, 7: 45144.9645079669}
new_dict_a = removekey(dict_a,keys_to_delete)
print(new_dict_a)
print(dict_a)
Вывод:
{1: 237.68252216827375, 3: 9.058932480795093, 4: 175.74552982744078, 5: 4.834328204426816, 6: 180.5798580318676, 7: 45144.9645079669}
{0: 277.8646380131756, 1: 237.68252216827375, 2: 223.04941947616766, 3: 9.058932480795093, 4: 175.74552982744078, 5: 4.834328204426816, 6: 180.5798580318676, 7: 45144.9645079669}