different Booleans = same output ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

different Booleans = same output ??

I wanna be sure having understood that we are free to choose between most Booleans statements to get the same output at the end ??

3rd Apr 2020, 6:40 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
4 Answers
+ 3
You should check : (If ,else if, else, do while, while, For, switch) In discussion section OR Google it and open w3schools explanation 👍
10th Apr 2020, 2:22 PM
⁣𓆩 Anкΐτ soℓคnкΐ ♣️
⁣𓆩 Anкΐτ soℓคnкΐ ♣️ - avatar
+ 7
very kind from you...!
15th Apr 2020, 7:22 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 4
Sorry... ! My 😊 english knowledges are not the best. I am in tha know Boolean’s statements as if, else, elif, for in, while, if not true, if not false... They all have the goal to compare if 2 values run : !!True or False!! So, no matter which Boolean expression we will use coz they all run True or false. P.s. Hope having better expressed 🤷🏻‍♀️ Thank y all for ur helpfully meaning answers.. 😊
3rd Apr 2020, 8:50 PM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
+ 3
Hello, Please clarify your question more, as it is very difficult to comprehend what you are trying to say. Boolean statements (or expressions) can have truthy or falsy value, and that can occur multiple ways, for example the number 0, an empty list, an empty string, and None also result in False.
3rd Apr 2020, 6:48 PM
Tibor Santa
Tibor Santa - avatar