Is there a better way to write the following:
if "msg" in response_dic or "save_act_errors" in response_dic or "add_act_errors" in response_dic or "modif_act_errors" in response_dic or "update_act_errors" in response_dic:
#do stuff
response_dic
is a dictionary, I am checking for keys.
There are 2 questions in fact:
1/ How to test many keys in a dictionary?
2/ How to check partial keys (in my case finishing with "_act_errors")?