Computer Science, asked by pranav9921, 9 months ago

why is Boolean considered as a subtype of integers ? What data types of python handles numbers​

Answers

Answered by GAssitant
13

Answer:

Boolean values are the two constant objects False and True. They are used to represent truth values (other values can also be considered false or true). In numeric contexts (for example, when used as the argument to an arithmetic operator), they behave like the integers 0 and 1, respectively.

Type     Format     Description

int            a = 10     Signed Integer

long     a = 345L     (L) Long integers, they can also be represented in octal and hexadecimal              

float     a = 45.67     (.) Floating point real values

complex     a = 3.14J     (J) Contains integer in the range 0 to 255.

Similar questions