Il giorno gio 9 gen 2020 alle ore 19:57 Carpediem <i.carped...@tiscali.it> 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 Python@lists.python.it https://lists.python.it/mailman/listinfo/python