May-31-2020, 12:33 PM
I'm relatively new to Python, trying to learn. One quiz I am trying to slove contains the following code:
The value of result at the end of code is given 5.25, I don't know why? Where do "True" and "False" come here? I don't understand, can anyone explain? When I run the code, I don't get anything...
x = 20
y = 5
result = (x + True) / (4 - y * False)
The value of result at the end of code is given 5.25, I don't know why? Where do "True" and "False" come here? I don't understand, can anyone explain? When I run the code, I don't get anything...
x = 20
y = 5
result = (x + True) / (4 - y * False)