Il 24 lug 2017 2:02 PM, "Gabriele Battaglia" <iz4...@libero.it> ha scritto:

a=True
if !a: print "Falso"
Synthax Error.

Come si usa l'esclamativo per negare?
Non mi ricordo la sintassi.


 Non di usa. O fai un confronto tipo

if a != True:

   print "Falso"

Oppure

if not a:
    print "Falso"

Carlos
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python

Rispondere a