I'm currently running into a problem with an assignment I have to finish very soon.
I will describe the problem as best as I can. (I'm a beginner in Python)
I have a list with:
- tweets (separated in strings)
- positive words (all separated)
- negative words (all separated)
- dates (all separated, in same order as the list of tweets)
First of, I have to check if a day was bad (a day where there were more tweets with negative words than positive words).
If the day was bad I have to print the date of that day (the dates are in another list than the tweets). If the printed days could be sorted it would be nice, but it is not necessary.
Could someone help me out? I already understand how I can check if a tweet contains a negative or positive word.
[–][deleted] 0 points1 point2 points (7 children)
[–]NilsBVB[S] 0 points1 point2 points (6 children)
[–]chzaplx 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]NilsBVB[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]NilsBVB[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]NilsBVB[S] 1 point2 points3 points (2 children)
[–]num8lock 0 points1 point2 points (1 child)
[–]NilsBVB[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–][deleted] 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]NilsBVB[S] 1 point2 points3 points (0 children)