Back to Freecodecamp

If Statements

curriculum/challenges/english/blocks/control-flow-and-functions-in-python/if-statements-video.md

latest506 B
Original Source

--description--

In this video, you will learn how to use if statements to control the flow of your Python programs based on conditions.

--questions--

--text--

What will be the output for the following code?

python
is_male = True
is_tall = True

if is_male or is_tall:
    print("You are a male")
else:
    print("You are not a male")

--answers--

"You are not a male"


"You are a male"


"You are not a male" and "You are a male"


None

--video-solution--

2