#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Contains common functions
"""

def repeat_char(char, times):
    """
    Repeats a character and returns the result.
    """

    i = 0
    res = ""

    while i < times:
        res += char
        i += 1

    return res
