Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?

2 Answers

Vlad Vamos
Vlad Vamos
1,288 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.