+ 5

Please explain Boolean not

Python 3

13th Aug 2019, 8:55 AM
Ugiomoh Bobby IG
Ugiomoh Bobby IG - avatar
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
13th Aug 2019, 9:01 AM
D_Stark
D_Stark - avatar
+ 6
Not is just the negation/negative of the truth value.
13th Aug 2019, 9:59 AM
Sonic
Sonic - avatar
+ 5
Sonic I didn't see the "not" the end of his question earlier 😅
13th Aug 2019, 7:50 PM
D_Stark
D_Stark - avatar
+ 3
Thanks guys
13th Aug 2019, 8:04 PM
Ugiomoh Bobby IG
Ugiomoh Bobby IG - avatar
+ 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
11th Jun 2021, 2:55 PM
Abdelrahman shaheen
+ 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.
29th Mar 2021, 3:06 PM
BXtrme
BXtrme - avatar
+ 1
Boolean not negates the output value of a Boolean expression
25th Jun 2021, 7:33 AM
Bolarinwa Babatunde
Bolarinwa Babatunde - avatar
+ 1
Boolean simply means true and false that's it
29th Sep 2021, 4:18 PM
Rishav Kumar
Rishav Kumar - avatar
+ 1
It is the reverse of the normal state not true?=false
4th Nov 2021, 8:27 PM
Majid Tirbo
Majid Tirbo - avatar
+ 1
The not operator inverts the output.
6th Mar 2022, 2:42 PM
Ryan mclain
Ryan mclain - avatar
+ 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
15th Nov 2022, 6:08 PM
Cedrick Msila
Cedrick Msila - avatar
0
Just remember that answer is always oposite ... 0 stands for false 1 stands for true... shortcut for learning purpose
30th Aug 2021, 3:41 AM
Shiv Tiwari
Shiv Tiwari - avatar
0
Boolean not is not intended or the list or the items of the given
12th Apr 2022, 1:08 PM
Jena