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
Takk for tilbakemeldingene dine!
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 5.88
Challenge: Mario
Sveip for å vise menyen
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
Takk for tilbakemeldingene dine!
single