type of data
<class 'collections.OrderedDict'>
if("a" not in data or "b" not in data or "c" not in data or
"d" not in data or "e" not in data or "f" not in data or
"g" not in data or "h" not in data or "i" not in data):
raise serializers.ValidationError("All Required Parameters not provided")
i am checking for all these parameters whether they are present in my ordered dictionary or not is there any better way to check this?
You can do this,
list('abcdefghijkli')->['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'i']. You can also use the entire list if you set of keys to check. like this,Execution: