CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
If StatementsOperators
📥 Auto-Input:
1\n
This input is automatically fed to your program's stdin
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.