str.repeat

source written repeat times, with separator between the copies ("" for 0 times). The result may hold at most 40,960 characters.

str.repeat(source: string, repeat: int, separator: string = "") -> string

Parameters

Example

str.repeat("-", 10)