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.
![Example](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/9ac87b53-133a-4974-8f1d-a9761888723b/mushroom.png
)
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!
Everything was clear?
Course Content
Conditional Statements in Python
3. Python if-elif-else Statement
4. Python Ternary Operator
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.
![Example](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/9ac87b53-133a-4974-8f1d-a9761888723b/mushroom.png
)
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!
Everything was clear?