Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Mario | Python if Statement
Conditional Statements in Python Clone

Veeg om het menu te tonen

book
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.

Taak

Swipe to start coding

You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.

  1. Write the keyword if to complete the first condition;
  2. Show the outcome if the first condition holds true using the print function;
  3. Complete the second statement with variable has_super_mushroom.

Great job! Keep up your journey, Super Mario!

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 6

Vraag AI

expand
ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

book
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.

Taak

Swipe to start coding

You should write two scenarios: one where Mario has a Super Mushroom and another where he does not.

  1. Write the keyword if to complete the first condition;
  2. Show the outcome if the first condition holds true using the print function;
  3. Complete the second statement with variable has_super_mushroom.

Great job! Keep up your journey, Super Mario!

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 6
Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt