A line of dashes

Write rule(n) that returns a string of n dashes, for underlining a receipt. rule(0) is the empty string.

rule(5)  ->  "-----"
def rule(n):
    ...