Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Types and Branching Booleans

taylor gilham
taylor gilham
3,751 Points

not quite understanding booleans

or is true on both sides should give you true so both sides should be equal so would False or False be True?

with and should they just be opposite of each other?

3 Answers

Vlad Vamos
Vlad Vamos
1,290 Points

'and' is True only if both sides are true, 'or' needs only one side to be True to finally return True itself. Check this out.

seong lee
seong lee
4,503 Points

Yeah what Vlad said, 'and' is supposed to be true for both conditions and 'or is only true for one condition.

so this means in between or true has advantage and if there is and then false has upper hand