This notebook just defines bar

In [2]:
def bar(x):
    return "bar" * x