import hashlib


def md5_of_file(fname: str) -> str:
    """
    get md5 hash of file content

    https://docs.python.org/3/library/hashlib.html
    https://www.geeksforgeeks.org/md5-hash-python/

    Args:
        fname: name of file to hash
    Returns:
        hash as string
    Raises:

    >>> md5_file('name_of_file')
    d41d8cd98f00b204e9800998ecf8427e
    """
    with open(fname, "rb") as fil:
        file_content = fil.read()
    return hashlib.md5(file_content).hexdigest()