Treat the tuple as a condition : Tuple Condition « Tuple « Python






Treat the tuple as a condition

Treat the tuple as a condition


inventory = ()


if not inventory:
    print "You are empty-handed."


           
       








Related examples in the same category