Update page 'Day 3 homework - Sloetjes'
@@ -178,9 +178,6 @@ def sentiment(emoji):
|
||||
"😢": -6.2,
|
||||
"😡": -9.5,
|
||||
"😍": 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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user