def get_movie_rating(omdb_dict):
    """
    It takes an OMDB dictionary result for one movie and extracts the Rotten Tomatoes rating as an integer.
    For example, if given the OMDB dictionary for “Black Panther”, it would return 97.
    If there is no Rotten Tomatoes rating, return 0.
    """
    ratings = omdb_dict['Ratings']
    r = [d['Value'] for d in ratings if d['Source'] == 'Rotten Tomatoes']
    for d in ratings:
        if d['Source'] == 'Rotten Tomatoes':
            return int(d['Value'][:-1])
    return 0