+ 5
Please explain Boolean not
Python 3
13 odpowiedzi
+ 6
A boolean value exspresses a truth value which can be either true or false.
boolean b = "bobby".equals("bobby");
//output true
boolean b2 = "bobby"==new String("bobby");
//output false
+ 6
Not is just the negation/negative of the truth value.
+ 5
Sonic I didn't see the "not" the end of his question earlier 😅
+ 3
Thanks guys
+ 3
for example
if not 1+1==3:
Print(23)
else:
Print(24)
This meint that he will be printing 23 because 1+1==3 it is not gleich
+ 1
The Not operation just inverts True to False and False to True.
Say you have two paths, the path on the right is the output, and the path on the left is the input. When you take the left you don't take the right, and vice verca.
+ 1
Boolean not negates the output value of a Boolean expression
+ 1
Boolean simply means true and false that's it
+ 1
It is the reverse of the normal state not true?=false
+ 1
The not operator inverts the output.
+ 1
The boolean not works simply this way.
Run the program and get the value.
Then whatever the value is, just reverse it.
If the ends up being true, reverse it to False and false ends up being the final result.
And if the result is false, go on and invert it to true.
And you'll have false as the final output
0
Just remember that answer is always oposite ...
0 stands for false
1 stands for true... shortcut for learning purpose
0
Boolean not is not intended or the list or the items of the given