def delete(head, target):
    if head is None:
        return None
    if head["data"] == target:
        return head["next"]
    current = head
    while current["next"] is not None:

        if current["next"]["data"] == target:

            current["next"] = current["next"]["next"]
            return head
        current = current["next"]
    return head

head = delete(head, 20)
display(head)
