← Back to If Statements
Question 234
Pass Label In One Line
Pass Label In One Line
Read a mark and print it followed by its label in the form <mark>: Pass or <mark>: Fail, where 50 or more passes. Choose the label with the conditional expression a if condition else b in a single assignment to a variable named status, then print one f-string. Input: one integer, the mark, no prompt. Output: one line.
Expected Output:
72: Pass= 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.