Boolean logic | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite

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 Réponse
+ 7
No their is no need to write logic.
17th Apr 2021, 3:53 PM
K«ür…®s…¶m«ü ‚Ě•
K«ür…®s…¶m«ü ‚Ě• - avatar