In Python, when you multiply a boolean value by an integer, the boolean value is implicitly converted to an integer. In this case, False is equivalent to 0, so False * 10 will result in 0.
If you run the following code: print(False * 10)
The output will be: 0
0 Comments:
Post a Comment