def alltrue(seq):
 if (not len(seq)):
  return False
 for val in seq:
  if (not val):
   return False
 return True

def alltrue ( seq ) : if ( not len ( seq ) ) : return False for val in seq : if ( not val ) : return False return True
return *true* if all elements of *seq* evaluate to *true* .