Quick question | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Quick question

Why computers always choose True over false? Example True or False= the answer is True, why?

31st Jul 2022, 8:35 PM
Daks
Daks - avatar
6 Respostas
+ 2
Because binary.
31st Jul 2022, 8:41 PM
ĻŅÆą«ØœdŌŒą«Ø Ɨ
ĻŅÆą«ØœdŌŒą«Ø Ɨ - avatar
+ 2
It is a logic operation ... It is hard to explain it but i will give u a small example which may make u understand šŸŒŸ: Imagine that uare doing an exam composed of two parts ... And in order to succeed you do at least one part right... That is mean : if one part is right and the other part is wrong you will succeed ..and if the two parts are right you will also succed ..the same thing concerned about "or" ... to get true ...you need to have true one time at least ..that's why true or false is true šŸ’™
31st Jul 2022, 9:46 PM
Moha Riad
Moha Riad - avatar
+ 1
You can evaluate a lot of things true or false.. In fact everything is going to return a true or a false to some degree. If returns true, proceed, if false do something else. Its a the foundation of logic.
31st Jul 2022, 8:43 PM
ĻŅÆą«ØœdŌŒą«Ø Ɨ
ĻŅÆą«ØœdŌŒą«Ø Ɨ - avatar
+ 1
Thank yall, appreciation.
31st Jul 2022, 9:50 PM
Daks
Daks - avatar
0
I need explanation bro, if you can. Thank you.
31st Jul 2022, 8:43 PM
Daks
Daks - avatar
0
'or' is a logical operater. Logical or means it will check the given 2 condition at a time. If any one of them is true. It will return/choose true. If both of them are false then return/choose false. If both the conditions are true then return true.
1st Aug 2022, 5:28 PM
Anshul Khangar
Anshul Khangar - avatar