Il giorno gio 9 gen 2020 alle ore 19:57 Carpediem
<[email protected]> ha scritto:
>
> [...]
>
> SyntaxWarning: "is not" with a literal. Did you mean "!="?
>    if richiesta_proseguimento_partita is not "s" and
> richiesta_proseguimento_partita is not "S" and
> richiesta_proseguimento_partita is not "n" and
> richiesta_proseguimento_partita is not "N":

Io userei qualcosa del genere:

if not richiesta_proseguimento_partita in [ "s", "S", "n", "N"]:
    ...

Ciao

-- 

Daniele

www.fugamatematica.blogspot.com

    giusto!
    nel verso
    forse è perché non guardiamo le cose
    Quando non ci capiamo,
_______________________________________________
Python mailing list
[email protected]
https://lists.python.it/mailman/listinfo/python

Rispondere a