Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1
13th Sep 2019, 12:25 PM
Kobe Schruers
Kobe Schruers - avatar
3 Answers
+ 4
Because!!!
13th Sep 2019, 12:44 PM
Thoq!
Thoq! - avatar
+ 1
Boolean logic should not be hard. First: You might want a way to get booleans, you can get them by comparing values with simple comparison operations you might have learned in school: (==, <=, >=, <, >, !=) Comparison operator* Second you might want to use multiple booleans to get wanted boolean, you can get them by using logical operations, might not be taught in school: (and, or, not) Logical operations* Last you might want to use the final boolean value in a conditional statement or a loop: (if, else, elif, "while") Conditional statements* *Comparison operators take in any values and return a boolean. *Logical operators take in booleans and return a boolean. *Conditional statements take in booleans and runs a block of code depending on the boolean.
13th Sep 2019, 1:21 PM
Seb TheS
Seb TheS - avatar