Hey there, I've been a bit stuck on getting my head around why my code here didn't work the way I created it.
# Combining two lists here which contain the status_pattern names for the keys and object UUID as values
status = {name: id for name, id in zip(status_list, status_id)}
payload = {"status": input("Status")} # input here will be: Active
for key, value in payload.items():
match_status = status_pattern1.search(value, re.IGNORECASE)
if match_status and value in match_status.group(0): # Here all goes well
for keys, val in status.items(): # My issue seems to be here. My intention is to compare the user value to the keys in status, where one of them is "Active". What I thought would happen is that the value in payload would then be updated to the corresponding value found in status. What did I do wrong here?
if value in keys:
payload["status"] = val```