def copies(string, cnt):
    """returns cnt concatenated copies of string. The cnt must be a
    positive whole number or zero."""

    if cnt < 0:
        raise ValueError("cnt="+repr(cnt)+" is not valid")

    return str(string)*cnt