Boolean logic | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren

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 Antwort
+ 7
No their is no need to write logic.
17th Apr 2021, 3:53 PM
Kăčr╔Ęs╔Žmăč ÔŁą
Kăčr╔Ęs╔Žmăč ÔŁą - avatar