Course Content
Conditional Statements in Python
Conditional Statements in Python
Challenge: Mario
Let's play! We're playing Mario, and he encounters a block obstacle. Mario can overcome this obstacle by transforming into Super Mario, which grants him increased size and power. To achieve this, he needs to obtain the Super Mushroom.
Task
You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.
- Write the keyword
if
to complete the first condition; - Show the outcome
if
the first condition holds true using theprint
function; - Complete the second statement with variable
has_super_mushroom
.
Great job! Keep up your journey, Super Mario!
Thanks for your feedback!
Challenge: Mario
Let's play! We're playing Mario, and he encounters a block obstacle. Mario can overcome this obstacle by transforming into Super Mario, which grants him increased size and power. To achieve this, he needs to obtain the Super Mushroom.
Task
You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.
- Write the keyword
if
to complete the first condition; - Show the outcome
if
the first condition holds true using theprint
function; - Complete the second statement with variable
has_super_mushroom
.
Great job! Keep up your journey, Super Mario!
Thanks for your feedback!
Challenge: Mario
Let's play! We're playing Mario, and he encounters a block obstacle. Mario can overcome this obstacle by transforming into Super Mario, which grants him increased size and power. To achieve this, he needs to obtain the Super Mushroom.
Task
You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.
- Write the keyword
if
to complete the first condition; - Show the outcome
if
the first condition holds true using theprint
function; - Complete the second statement with variable
has_super_mushroom
.
Great job! Keep up your journey, Super Mario!
Thanks for your feedback!
Let's play! We're playing Mario, and he encounters a block obstacle. Mario can overcome this obstacle by transforming into Super Mario, which grants him increased size and power. To achieve this, he needs to obtain the Super Mushroom.
Task
You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.
- Write the keyword
if
to complete the first condition; - Show the outcome
if
the first condition holds true using theprint
function; - Complete the second statement with variable
has_super_mushroom
.
Great job! Keep up your journey, Super Mario!