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

Scorri per mostrare il menu

book
Challenge: Geometric Figure

Compito

Swipe to start coding

Let's write a simple program that will determine geometric figures depending on how many angles this figure has.

We have the following classification:

  • angles = 0: Circle or ellipse;
  • angles = 3: Triangle;
  • angles = 4: Square, rectangle or rhombus;
  • angles > 4: Polygon;
  • in other cases: It is not a geometric figure.

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 2. Capitolo 3
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: Geometric Figure

Compito

Swipe to start coding

Let's write a simple program that will determine geometric figures depending on how many angles this figure has.

We have the following classification:

  • angles = 0: Circle or ellipse;
  • angles = 3: Triangle;
  • angles = 4: Square, rectangle or rhombus;
  • angles > 4: Polygon;
  • in other cases: It is not a geometric figure.

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 2. Capitolo 3
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