Course Content

Conditional Statements in Python

## Conditional Statements in Python

# Challenge: Geometric Figure

Task

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

Task

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

Everything was clear?

# Challenge: Geometric Figure

Task

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

Task

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

Everything was clear?

# Challenge: Geometric Figure

Task

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

Task

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

Everything was clear?

Task

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