Update page 'Day 3 homework - Sloetjes'

xuanyi.wang
2023-04-03 20:25:45 +02:00
parent 031c14ccb6
commit d3d49912be
-3
@@ -178,9 +178,6 @@ def sentiment(emoji):
"😢": -6.2, "😢": -6.2,
"😡": -9.5, "😡": -9.5,
"😍": 9.8, "😍": 9.8,
# and so on...
} }
# look up the sentiment score for the given emoji, or return a neutral score if the emoji is not in the dictionary
return sentiment_scores.get(emoji, 0.0) return sentiment_scores.get(emoji, 0.0)
``` ```