Aug-25-2018, 07:05 AM
(This post was last modified: Aug-25-2018, 07:05 AM by goelraghavg.)
Hi,
I was doing my python homework recently and I also have a an upcoming practical. In my workbook there are some questions in which an expression is given, we have to first try it out ourselves, then run it in Python and match the output while also providing a reason for the answer. Many questions are of this form:
What's meant by using a boolean operator on integers? Please help.
Thanks!
I was doing my python homework recently and I also have a an upcoming practical. In my workbook there are some questions in which an expression is given, we have to first try it out ourselves, then run it in Python and match the output while also providing a reason for the answer. Many questions are of this form:
3 < (10 or 2)Python evaluates this as True.
3<(2 or 10)is evaluated as false
What's meant by using a boolean operator on integers? Please help.
Thanks!