Skip to main content
πŸ”’ Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial β†’
⚑
← Coursesβ€ΊCreative ChallengesModule 6 Β· πŸ”§ Refactor Master Β· Recapβ€ΊπŸŽ― Review: Creative module 6 recapscenario63 / 104
+80 XP
Task
Build `bug_bounty_validate(report)` returning `True` if all required fields are present and non-empty: - Required keys: `"title"`, `"steps_to_reproduce"`, `"expected"`, `"actual"`, `"severity"`. - A value is "present" if the key exists AND `bool(value)` is True (strips false-y blanks). - Severity must be one of `{"P0", "P1", "P2", "P3"}`; anything else fails validation. - Missing any required key OR invalid severity β†’ return `False`. - All checks pass β†’ return `True`. This is the intake gate every bug-bounty tracker runs before paying out.
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
πŸ“Š Result
Press Run to see result...

πŸ’¬ Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…