Post

@PythonPr The trick: boolean values act as integers (True=1, False=0) in arithmetic operations. True is 1 and False is 0. So the result is 1 (True) + 0 (false) + 1 ( true) = 2
English

@PythonPr Inner bracket true for only 0 and 2 . So answer is 2
English

@PythonPr Clear Python ideas are worth sharing, these concise guides help learners of all levels,
English





















