Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Oct 12, 2021
Embed
What would you like to do?
x = sum(data["Positive"])
y = sum(data["Negative"])
z = sum(data["Neutral"])
def sentiment_score(a, b, c):
if (a>b) and (a>c):
print("Positive 😊 ")
elif (b>a) and (b>c):
print("Negative 😠 ")
else:
print("Neutral 🙂 ")
sentiment_score(x, y, z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment