← Back to If Statements
Question 247
Singular Or Plural
Singular Or Plural
Read a count and print it followed by the right word: 1 item but 3 items or 0 items. Choose between item and items with the conditional expression a if condition else b, store the result in a variable named word, and print one f-string with the count, a space and the word. Input: one integer, no prompt. Output: one line.
Expected Output:
1 item= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
If StatementsOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.