Why does (False + True) return an integer in python

  python
print(False + True)

Why does this return an integer 1

Is there any explanation?

Also print((int(False + True) == (False + True)) )

returns True, so this means that True + False is indeed an integer ?

Source: Python Questions

LEAVE A COMMENT