futurecoder icon indicating copy to clipboard operation
futurecoder copied to clipboard

Handle duplicate functions in solution

Open alexmojaki opened this issue 2 years ago • 0 comments

Sometimes students define the required function twice, e.g:

def double(x):
    return x + x

def quadruple(x):
    return double(double(x))

def quadruple(x):
    return double(double(x))

This causes an error in the checker making it seem like something has gone wrong. Instead we should just tell the user to define the function only once.

alexmojaki avatar Mar 01 '23 10:03 alexmojaki