Skip to content

Python function ending with 'return """' produces "All tests passed!" #95

Description

@x77686d

It appears that a Python solution ending with 'return """' (triple double-quote) produces "All tests passed!" even though it's a syntax error. Sample code:

def grid_is_square(x):
        return """

Here's what the student sees:
image

The progress summary shows the following. Note the gray bar (not started(?)) and green bar (passed) for grid_is_square.
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions