Boolean logic

So with Boolean logic if I’m writing a program do I have to write out the logic; Such as 1 == 1 and 2==2 True 1 !=3 and 2==2 False Or do python already have this programmed within itself? So no need to write logic. How would I get the program to print a statement that involves multiple logical statements to hold true, In order to print a certain statement and and print something totally different if one or more logical steps holds False. Is there a need to use True and False in statements?

17th Apr 2021, 3:46 PM
Reginald Gray
1 Answer
+ 7
No their is no need to write logic. https://code.sololearn.com/cySNdqH78vhL/?ref=app
17th Apr 2021, 3:53 PM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar