python if boolean list all true code example Example: check if boolean is true python b = True if b: print('b is True') else: print('b is False')