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

Contenido del Curso

Conditional Statements in Python

Challenge: Geometric FigureChallenge: Geometric Figure

Tarea

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.

¿Todo estuvo claro?

Sección 2. Capítulo 3
toggle bottom row
course content

Contenido del Curso

Conditional Statements in Python

Challenge: Geometric FigureChallenge: Geometric Figure

Tarea

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.

¿Todo estuvo claro?

Sección 2. Capítulo 3
toggle bottom row
some-alt