Python Forum
Computer science can you help me with the last part of the code after mentionedWords.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Computer science can you help me with the last part of the code after mentionedWords.
#7
@perfringo

Because my professor gave us a : all-tweets.zip file containing 12 .tweet files we have to run through. W have to run through each file simultaneously and not input one at a time so my professor said use filename.
Use sort to sort the above list and print out 3 most frequently mentioned usernames.

Check each file in the current folder (using os.listdir('.')), if the file name ends with .tweets, call findMentions on the file to find its most frequent mentions.
Reply


Messages In This Thread
RE: Computer science can you help me with the last part of the code after mentionedWords. - by shirleylam852 - Nov-28-2020, 12:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Having trouble with my Computer Science task Dunxx 1 1,881 Oct-07-2021, 12:32 PM
Last Post: DeaD_EyE
  computer science coursework, read the text please and tell me if theres any specifics sixcray 4 2,800 Nov-11-2020, 03:17 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020