Skip to content

Pass or fail

Pass or fail

mark is 47. Print pass when the mark is 50 or more, and fail otherwise.

else catches everything the if did not. It takes no condition of its own — just else: — and its own indented line underneath.

Log in or create account

IGCSE, A-Level & AP