Hi @pravin_bindage
For each list item and check if item=dic[item] then leave otherwise dic.remove(item)