← back to unit
Challenge
# breaking it down advanced
Score the Spelling Bee
Bee rules: every correct word scores 2 points, and completing each run of THREE correct in a row earns a +5 streak bonus (a run of six = two bonuses!). 🐝
You get the speller's answers and the key (matching lists). Print the final score.
Example:
Input: answers = ["cat", "dog", "fox", "owl"], key = ["cat", "dog", "fox", "elk"]
Output: 11
cat, dog, fox are correct — 3 in a row, earning a +5 streak bonus on top of 3 × 2 = 6 points. Then owl is wrong. Total: 6 + 5 = 11.
💡 need a hint?
brk-spelling-bee.py🔒 given lines are locked — write your code in between
loading...