Skip to content

[Bug] Word-Scramble-Game has a SyntaxError — file cannot run at all (line 354) #1867

Description

@vedant7007

Problem (High — file won't run)

games/Word-Scramble-Game/Word-Scramble-Game.py:354:

valid_words.append((category, available_words)

is missing the closing ) for .append(, and lines 356-362 are mis-indented under the open paren. python -m py_compile aborts with SyntaxError: '(' was never closed. Any invocation fails at import — the file is dead on arrival.

Suggested fix (tiny)

Close the call — valid_words.append((category, available_words)) — and de-indent the if not valid_words: block to the for-loop level.

Happy to fix under GSSoC '26 if assigned. 🙌

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions