import re
import string


def clean_text(text):
    """
    Function to clean the text.

    Parameters:
    text: the raw text as a string value that needs to be cleaned

    Returns:
    cleaned_text: the cleaned text as string
    """
    # convert to lower case
    cleaned_text = text.lower()
    # remove HTML tags
    html_pattern = re.compile('<.*?>')
    cleaned_text = re.sub(html_pattern, '', cleaned_text)
    # remove punctuations
    cleaned_text = cleaned_text.translate(
        str.maketrans('', '', string.punctuation))

    return cleaned_text.strip()