Can the following conversions be allowed? If so, find the converted result.
i = int(True)
j = int(False)
b1 = bool(4)
b2 = bool(0)
The conversions can be allowed. The converted resilt are
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> i = int(True)
>>> j = int(False)
>>> b1 = bool(4)
>>> b2 = bool(0)
>>> print(i)
1
>>> print(j)
0
>>> print(b1)
True
>>> print(b2)
False
>>>