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 Clone
セクション 3.  3
single

single

bookChallenge: Ordinal Adjectives

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

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:

number1 - 1st
number2 - 2nd
number3 - 3rd
number4 - 4th
number5 - 5th
number6 - 6th
number7 - 7th
number8 - 8th
number9 - 9th

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 desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  3
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt