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

Pyyhkäise näyttääksesi valikon

book
Challenge: Geometric Figure

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3

Kysy tekoälyä

expand
ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

book
Challenge: Geometric Figure

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt