Python: Named arguments
Instructions
Loading...
Your exercise will be checked with these tests:
import index
def test():
assert index.trim_and_repeat("python") == "python"
assert index.trim_and_repeat("python", offset=4) == "on"
assert index.trim_and_repeat("python", repetitions=2) == "pythonpython"
assert index.trim_and_repeat("python", offset=4, repetitions=2) == "onon"
Teacher's solution will be available in:
20:00
