is there a better way of checking if multiple key exists in a dictionary and assigning multiple values to a variable based on the key found in the dictionary. instead of multiple ifs??
name = None
type_of_transaction = None
customer = None
transaction_id = None
for key, value in data_value.items():
if "unique_element" in key:
customer = value
if "type" in key:
type_of_transaction = value
if "product_name" in key:
name = value
if "transactionId" in key:
transaction_id = value