0

How to use True and False statements?

how to use true and false statements using true statements so basically I've seen so many codes on YouTube using true and false I just don't understand how to use them

19th Jul 2018, 2:44 PM
Sainath Dora
4 Respuestas
0
Sainath Dora think of functions as robots that you can call and command to do something for you, the robot can accept stuffs to process, these stuffs we call "arguments", and it can return the result of its work to you, we call this result "return value". Now, True/False are known as boolean, they are used to express whether something is right/wrong, good/bad, yes/no etc. For example, you have a function to process a number, to verify if it was an even number, then the function should be designed to be able to accept a number to check (argument), and after the function is done checking, it returns to you a boolean state (return value), it should return True if it finds the number to be even, or False if it was odd. You then can decide what to do next, given this information returned by the function. P.S. You still haven't tagged a language, please do so ... Hth, cmiiw
20th Jul 2018, 7:49 AM
Ipang
+ 4
We do want to help but your question must be clearer. I see on your profile that you are learning Python so I am gonna guess this is Oython related... Then what do you mean by True and False statements? Are you talking about how operators and/or work? Are you talking about if statements?
19th Jul 2018, 4:21 PM
cyk
cyk - avatar
+ 3
Can you add the language in question for the "relevant tag"? * I will delete this note when you added the language in tags *
19th Jul 2018, 3:10 PM
Ipang
0
in a function they'll use like return True or return false what it does exacly
20th Jul 2018, 3:18 AM
Sainath Dora