min_value = min(sentiment_dict.values())
max_value = max(sentiment_dict.values())
min_key = {value: key for key, value in list(sentiment_dict.items())}[min_value]
Divide and find maximum value in for loop: Python