Brief
Choose an action from available information while keeping uncertainty visible.
Imani must sort three cards before an internal hearing. A says “release” but its source is not confirmed. B says “received” with a warehouse card. C says “release” and its source has been checked as a document, but the human author is not yet known. Voss wants both A and C in a drawer marked “guilty.” Mara asks for a technical sorting rule describing card status only.
Your mission
- Give A and C values for
actionandsource_confirmed, then follow the sampleif,elif,else. - Explain B's path and write an
orcondition allowing “received” or “checked.” - Write a
notquestion for an unconfirmed source. - Explain why a
'source'key on a card does not prove its value is true.
How to check your work
- A goes to “release to check”; C to “release confirmed” as a document, without a verdict on the author.
- B follows “other action”; you write a correct
orcondition. - You use
not source_confirmedto spot unconfirmed sources. - You separate a field's existence from evidence of its accuracy.
Course example
action = 'release'
source_confirmed = False
if action == 'release' and source_confirmed:
print('release confirmed')
elif action == 'release':
print('release to check')
else:
print('other action')