8 ответов
+ 18
Logical AND: and
Logical OR: or
Logical NOT: not
Bitwise AND: &
Bitwise OR: |
Bitwise XOR: ^
Bitwise Complement: ~
+ 5
In Python we use the word "not".
https://www.sololearn.com/learn/Python/2279/
+ 1
In Python, Boolean logic is written using words instead of symbols. For example, and is used instead of &&, or replaces ||, and not is used instead of !. This makes the code more readable and closer to plain English. For instance, if you want to check if both conditions are true, you would write if a and b:. To negate a condition, you simply use not, like if not a:. This approach is part of Python’s philosophy of writing clean and understandable code.
0
you can easily understood see the code
https://code.sololearn.com/cvF6cpPyN56o/?ref=app
0
because we have to program huge lines So makers decided make easy sometimes...... & some times !
0
Like Vadim already said, you couold use the "not" for determining it in your issue.
Yoshi
0
because we have to program huge lines So makers decided make easy sometimes...... & some times !
0
There are shortcut symbols for every Logical operator in Boolean, by using these shortcuts our code will be seen fantastic and also less words will be used in our codes.
And there will be no difference if we use AND or Symbol &
And same for the rest of Boolean Logical operators