Throughout this program when you perform checks like sum(x) >= self. b or similar checks using NumPy syntax, the output is usually True or False. Am I right? I mean it is of bool datatype. How come it is converted into 1’s and 0’s that enables us to count and get a whole number as output. Is there any inbuilt method?