def calculate_score(imp: list, dats: list) -> float:
    """Calculates the score of a tweet
    given the importance of each topic
    and the topic distribution of that tweet

    Args:
        imp (list): importance of topic
        dats (list): topic dictribution in a tweet

    Returns:
        float: score of the tweet with such topic distribution
    """
    score = 0
    for i in range(0, len(imp)):
        score += imp[i]*dats[i]
    return score