"John Henry" <john106henry at hotmail.com> writes: > # logflags is an array of logicals > test=True > for x in logflags: > test = test and x > print test print (False not in map(bool, logflags)) Possibly more "pure" alternative (untested): from operator import and_ print reduce(and_, map(bool, logflags))