def repeat(s, exclaim):
    """
    Repeat the String 's' three times,
    If the exclaim is true, it will add ! at the end
    """
    result = s * 3 #append s back to back three times.
    if exclaim:
        result = result + '!!!'
    return result