+ 2
Hey so i am struggling lesson in general is there any way someone can help me
6 Antworten
+ 4
Booleans = True & False Questions
Comparison Operators:
Equal (==)
[Example: 1 == 1 >>> Output: True]
[Example: 1 == 2 >>> Output: False]
Not Equal (!=)
[Example: 1 != 1 >>> Output: False]
[Example: 1 != 2 >>> Output: True]
Greater Than (>)
[Example: 1 > 2 >>> Output: False]
[Example: 2 > 1 >>> Output: True]
Less Than (<)
[Example: 1 < 2 >>> Output: True]
[Example: 2<1 >>> Output: False]
Greater or Equal (>=)
[Example: 1 >= 1 >>> Output: True]
[Example: 2 >= 1 >>> Output: True]
[Example: 1>=2 >>>Output: False]
Less or Equal (<=)
[Example: 1 <= 1 >>> Output: True]
[Example: 1 <= 2 >>> Output: True]
[Example: 2<=1 >>>Output: False]
Boolean Operators:
and – compares 2 "comparison operators":
[True + True = True]
[True + False = False]
[False + False = False]
or – compares 2 "comparison operators":
[True + True = True]
[True + False = True]
[False + False = False]
not
[Example: 1>4 >>> Worded Translation: 1 is greater than 4 >>> Output: False]
[Example: not 1>4 >>> Worded Translation: 1 is "not" greater than 4 >>> Output: True]
0
I'm just learning too but I'll try to help. Where is your struggles at in this lesson?
0
If you are looking for a general understanding, from what I understand this lesson teaches 2 conditions have to be met as true for the operation to be perceived as true. Sorry for improper terminology XD
0
I just dont understand the whole boolean lesson in genral.
0
sorry let me try to compile some easy to understand information XD
0
Hows that for an answer? XD