Configuration values may reference other variables as ${NAME}. Resolve every value recursively:
variables are replaced by their resolved value.None for the
whole result.Return the dictionary of fully resolved values.
Implement resolve. Input: variables: dict[str, str]. Returns: dict[str, str] | None.
def resolve(variables: dict[str, str]):
return dict(variables)
Run executes the public tests. Submit grades against public and hidden tests.
Configuration values may reference other variables as ${NAME}. Resolve every value recursively:
variables are replaced by their resolved value.None for the
whole result.Return the dictionary of fully resolved values.
Implement resolve. Input: variables: dict[str, str]. Returns: dict[str, str] | None.
def resolve(variables: dict[str, str]):
return dict(variables)
Run executes the public tests. Submit grades against public and hidden tests.