ShriRam Changed status to publish August 21, 2023
original_list=[{‘key1′:’value1′,’key2′:’value2′,’key3′:’value3’},{‘key1′:’value3′,’key2′:’value4′,’key3′:’value3′}]
print(“Original List: “,original_list)
new_list=[{k: v for k, v in d.items() if k !=’key1’}for d in original_list]
print(“New List: “)
print(new_list)
ShriRam Changed status to publish August 21, 2023