Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Basics!
You have completed Python Basics!
Preview
Let's take a look at boolean literals True and False and how to use logic
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
These values are gonna be use heavily in
the code that we create from here on out.
0:00
There are many times where
we'll wanna ask a yes or
0:00
no question and then run different code
based on how the question's answered.
0:02
Booleans are named after their creator,
a mathematician named George Boole.
0:07
In George's algebra, he used ones
to represent the value true and
0:11
zeros to represent false.
0:16
And this is the reason you see actors
playing hackers in movies dealing with
0:18
ones and zeros.
0:22
There's a popular saying in this world
that says, it's all ones and zeros.
0:23
And that's because it is.
0:27
Electrical circuits used in
the computer you're using right now,
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up