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.
Swipe to start coding
You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.
- Write the keyword
ifto complete the first condition; - Show the outcome
ifthe first condition holds true using theprintfunction; - Complete the second statement with variable
has_super_mushroom.
Great job! Keep up your journey, Super Mario!
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 5.88
Challenge: Mario
Swipe to show menu
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.
Swipe to start coding
You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.
- Write the keyword
ifto complete the first condition; - Show the outcome
ifthe first condition holds true using theprintfunction; - Complete the second statement with variable
has_super_mushroom.
Great job! Keep up your journey, Super Mario!
Solution
Thanks for your feedback!
single