DEV Community

Discussion on: Sentiment analysis on Trump's tweets using Python 🐍

Collapse
 
sebastiannielsen profile image
Sebastian-Nielsen • Edited

for source in data['Source']:
for index in range(len(sources)):
if source == sources[index]:
percent[index] += 1
pass

(
Why did the author write 'pass' on the last line?

Collapse
 
rodolfoferro profile image
Rodolfo Ferro

Sorry, my bad.

When I was writing the code I created an empty conditional, so at the beginning I put the pass reserved word and after that I forgot to take it out.