Home > Blockchain >  File indexing issue in python
File indexing issue in python

Time:12-06

for this function, i need to traverse through a file and count each line based on certain signifiers. If that certain signifier is present in the line, i need to add the string as a key to the dictionary and increment its value by one each time its present. I am not outright looking for the answer, I am just lost as to what I have done wrong and where I can proceed from here.

Both of the counter variables and the dictionary are returning empty. I need them to return the values based on what is present on a given file.

file line example:

RT @taylorswift13: Feeling like the luckiest person alive to get to take these brilliant artists out on tour w/ me: @paramore, @beabad00bee & @OwennMusic. I can’t WAIT to see you. It’s been a long time coming

  • Related