[Python] Value can't be found in Python dictionary

Discussão em 'Python' iniciado por Stack, Março 10, 2025.

  1. Stack

    Stack Membro Participativo

    I have the following and it's returning that it does not find "A5E02578419" in the dictionary. What am I doing wrong? I've looked everywhere but my code looks good.

    myDictionary = {"Start_Part": ["A5E02578419"], "Upper_packing": ["A5E02578482", "C75196Z1147A18", "C79196Z1147A196"]}

    if myDictionary.get("A5E02578419") is not None:
    print("The value exists in the dictionary.")
    else:
    print("The value does not exist in the dictionary.")

    Continue reading...

Compartilhe esta Página