From 3d3b8ccee24ef8c63b9b5650542b0f885de67193 Mon Sep 17 00:00:00 2001 From: Shagun15 Date: Mon, 5 Oct 2020 11:51:20 +0530 Subject: [PATCH] text was updated --- hashtags/jobopportunities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hashtags/jobopportunities.py b/hashtags/jobopportunities.py index eca3bdc..36e9f5a 100644 --- a/hashtags/jobopportunities.py +++ b/hashtags/jobopportunities.py @@ -89,13 +89,13 @@ def main(): tweets = api.get_tweets(query = 'Job Opportunities', count = 500) ptweets = [tweet for tweet in tweets if tweet['sentiment'] == 'positive'] - print("Positive tweets percentage: {} %".format(100*len(ptweets)/len(tweets))) + print("\nPositive tweets percentage: {} %".format(100*len(ptweets)/len(tweets))) ntweets = [tweet for tweet in tweets if tweet['sentiment'] == 'negative'] - print("Negative tweets percentage: {} %".format(100*len(ntweets)/len(tweets))) + print("\nNegative tweets percentage: {} %".format(100*len(ntweets)/len(tweets))) - print("Neutral tweets percentage: {} % ".format(100*(len(tweets) - len(ntweets) - len(ptweets))/len(tweets))) + print("/nNeutral tweets percentage: {} % ".format(100*(len(tweets) - len(ntweets) - len(ptweets))/len(tweets))) print("\n\nPositive tweets:") for tweet in ptweets[:10]: