[Python] I asked my kid for their Christmas list as a JSON list, and she told me its a JSON...

Discussão em 'Python' iniciado por Stack, Novembro 26, 2024.

  1. Stack

    Stack Membro Participativo

    I asked my daughter for their Christmas list as a JSON list, and she told me it should be a JSON object. I'm learning kids are smarter than dad.

    I was expecting a list response, and learned it should be an object or array.

    At this point I'm expecting something like:

    if 10 < age < 13:
    christmas_list =
    {
    "lululemon":"pant"
    "ugg":"classic"
    "sephora":"anything"
    }

    print(evaluate(christmas_list))

    Result:
    You are broke.

    Continue reading...

Compartilhe esta Página