Can I get some help with Booleans? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
25th Jul 2019, 6:28 PM
Kendle
4 Answers
+ 1
Ofcourse
25th Jul 2019, 9:01 PM
Seb TheS
Seb TheS - avatar
0
I’m not exaxtly sure how to get them started off.. like HOW would I know, off the top of my head to use bool?
26th Jul 2019, 8:02 PM
Kendle
0
my apologies.. i’m very VERY new to this.
26th Jul 2019, 8:03 PM
Kendle
0
Booleans self are very simple, because they can only be one of 2 different values: True and False, but how to use them will require some practice, but it all will make sense. Booleans are created by expressions. You can think someone told you that "Cows can fly.", that's a sentence, which can either be true or false. You can use that boolean information to run a certain pieces of code, when an expression is true. if "Cows can fly.": print("How can cows fly?")
26th Jul 2019, 9:51 PM
Seb TheS
Seb TheS - avatar