def hide(ans):
    """
    To hide the answer form the user.
    :param ans: str, the initiated random word
    :return riddle: str, has an identical length of ans but with each alphabet covered with '-'
    """
    riddle = ''
    for i in range(len(ans)):
        riddle += '-'
    return riddle