def repeat_str(s, num):
    """
    Repeat string
    :param s:   string
    :param num: repeat number
    :return:    string
    """
    output = ''
    for i in range(0, num):
        output += s
    if len(output) > 0:
        output += ' '
    return output