Post History
* == and If you want to check if two booleans or integers and want to check if both of them are true in an if statement, then you can leave out and to replace it with *: x=2;y=3 if x and y:pri...
Answer
#1: Initial revision
# `* == and` If you want to check if two booleans or integers and want to check if both of them are `true` in an `if` statement, then you can leave out `and` to replace it with `*`: <!-- language-all: lang-python --> x=2;y=3 if x and y:print("Yes") if x*y:print("Yes") [Try it online!][TIO-ktgigpss] [TIO-ktgigpss]: https://tio.run/##K6gsycjPM/7/v8LWyLrS1pgrM02hQiExL0Wh0qqgKDOvREMpMrVYSRMsroUq9v8/AA "Python 3 – Try It Online"