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

Pyyhkäise näyttääksesi valikon

book
Challenge: Ordinal Adjectives

Tehtävä

Swipe to start coding

You need to create a program that generates ordinal adjectives for each number from the following list: [1, 2, 3, 4, 5, 6, 7, 8, 9]. Your program should produce the following output:

python

It's essential to observe the pattern of this scheme and determine the correct endings for each number. Utilize if-elif-else statements within a for-loop to accomplish this task.

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 3. Luku 3

Kysy tekoälyä

expand
ChatGPT

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

book
Challenge: Ordinal Adjectives

Tehtävä

Swipe to start coding

You need to create a program that generates ordinal adjectives for each number from the following list: [1, 2, 3, 4, 5, 6, 7, 8, 9]. Your program should produce the following output:

python

It's essential to observe the pattern of this scheme and determine the correct endings for each number. Utilize if-elif-else statements within a for-loop to accomplish this task.

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