different Booleans = same output ?? | SoloLearn: Learn to code for FREE!


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 ??

4/3/2020 6:40:50 PM

Claudia Cadamuro

4 Answers

New Answer


very kind from you...!


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.


You should check : (If ,else if, else, do while, while, For, switch) In discussion section OR Google it and open w3schools explanation 👍


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.. 😊