Skip to content

Placeholder Code

The file .placeholder is the starter code students see when they first open the problem. It appears in the editor automatically.

Example

For a problem where students write a function called add:

def add(a, b):
    # write your solution here
    pass

Tips

  • Always include the function signature. Students shouldn't have to guess the name or parameters.
  • The function name must exactly match the functionName set on the problem — that's what the test runner looks for.
  • Keep it minimal. Don't give away the solution.

Note

If .placeholder doesn't exist, the editor starts empty.