def printSummary(results):
 statuses = zip(*results)[0]
 sys.stdout.write(('{} responses to {} queries'.format(statuses.count(True), len(statuses)) + '\n'))

def printSummary ( results ) : statuses = zip ( * results ) [ 0 ] sys . stdout . write ( ( '{} responses to {} queries' . format ( statuses . count ( True ) , len ( statuses ) ) + '\n' ) )
print a summary showing the total number of responses and queries .