Chapter 5: Problem 11
Ordinal Numbers: Ordinal numbers indicate their position in a list, such as \(1 s t\) or \(2 n d\). Most ordinal numbers end in \(t h\), except 1,2 , and \(3 .\) \- Store the numbers 1 through 9 in a list. \- Loop through the list. \- Use an if-elif-else chain inside the loop to print the proper ordinal ending for each number. Your output should read "1st 2 nd \(3 r d\) 4th 5 th 6 th 7 th 8 th 9 th", and each result should be on a separate line.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.