# 1212.py print 2 and 3 and 8 # 8 print 2 and [] and 7 # [] ####################################### print 0 or '' or [] # [] print 0 or [] or 2 or 5 # 2 ####################################### print bool(2 and 3 and 8) # True print bool(2 and [] and 7) # False print bool(0 or '' or []) # False print bool(0 or [] or 2 or 5) # True ####################################### import math # print math.log(0) # Errore - il logaritmo di 0 # non e' definito. print 1 or math.log(0) # 1 - In questo caso il logaritmo # non viene calcolato. ####################################### print not [] # True print not 5 # False