What is the output of print(int(False)) in Python?
print(int(False))
Correct answer
C. 0
7 views
C. 0
7 views
Booleans can be converted to int.
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is C? Ask here and get an explanation.