I am having around 10 boolean variables, I need to set a new boolean variable x=True if all those ten variable values are True.If one of them is False then set x= False I can do this in a manner
if (a and b and c and d and e and f...):
x = True
else:
x=False
which obviously looks very ugly.Please suggest some more pythonic solutions.
The ugly part is a and b and c and d and e and f...
Assuming you have the bools in a list/tuple:
or just as suggested by @minopret
example: