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 explore conditional branching
Learn more
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
If it's raining outside,
I'm gonna get an umbrella.
0:00
If I'm hungry, I'm gonna eat some food.
0:01
If it's late and I'm tired, I go to bed.
0:03
Well, unless I'm stuck on a coding
problem that I just have to fix.
0:05
I should just go to bed at that point.
0:09
The answer usually comes in my sleep.
0:10
All those scenarios
start with the word if.
0:12
And that is the first way that we are
gonna control the flow of our application.
0:15
If you want to learn more,
keep watching this video.
0:19
In our script here, we ask for
a name, we say hello,
0:24
and then we say the person
is learning Python.
0:27
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