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

Scorri per mostrare il menu

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.

Compito

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!

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 6
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

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.

Compito

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!

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 6
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt