def averageGuessesFromGuessMap(guessMap: dict[int, int]) -> float:
    """Return average guesses from map using weighed sum in form <guesses: words>,
    e.g <1:20, 3:5> returns 1.75"""
    weighedSum = 0
    wordsCount = 0
    for key,item in guessMap.items():
        weighedSum = weighedSum + key*item
        wordsCount = wordsCount + item
    return weighedSum/wordsCount