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

Course Content

Conditional Statements in Python

Conditional Statements in Python

1. Python if Statement
2. Python if-else Statement
3. Python if-elif-else Statement
4. Python Ternary Operator

bookChallenge: Ordinal Adjectives

Task
test

Swipe to show code editor

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:

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 3
toggle bottom row

bookChallenge: Ordinal Adjectives

Task
test

Swipe to show code editor

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:

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 3
toggle bottom row

bookChallenge: Ordinal Adjectives

Task
test

Swipe to show code editor

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:

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task
test

Swipe to show code editor

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:

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt