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!
Lösning
Tack för dina kommentarer!
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 5.88
Challenge: Mario
Svep för att visa menyn
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!
Lösning
Tack för dina kommentarer!
single