Rosalind Community Support

Home » Community Forum » Questions » Counting word count/frequency for a dictionary
Search
Search this community...
Share a Feedback

Community Forum

"Champions" Idea | Implemented
Sign in with Facebook Idea | Accepted
Rate upcoming features Question | Pending

Knowledge Base

Signin into
Rosalind Community.

Signin with

Your email address
UserRules Password
Login

Counting word count/frequency for a dictionary

Follow
Vote
0
Unfollow
Is there a good resource for counting words in a list?
Or converting a list into a dictionary simply? (making each word the key, then getting frequency?)

I'm stuck on it, and stackoverflow is overcomplicated for this.
(Is there a resource i'm missing?)

thanks!
from Dan Ofer · 4 years & 2 days ago · · 2 comments
Check out the Dictionay topic in Intro to Python. I got it to work when I manually created a list and ran it interactively, but the same code failed when I preloaded the sample data into an external file and read the file. The error msg pointed to a line of code, but the only difference was the source of the data and the data itself. I haven't run it yet with the same data from an external file. Very frustrating!
from anonymous · 3 years & 342 days ago · Flag as inappropriate
Good Comment
Hi Dan, I just commented on your question and was listed as "anonymous". Tried to sign into the Rosalind Community to identify myself but couldn't.
Dave Taylor
from anonymous · 3 years & 342 days ago · Flag as inappropriate
Good Comment
Write a comment... Comment

Similar Feedback

In the Frequent Words problem, is the Count stateme...
3 years & 342 days ago · Answered
Finding a Motif in DNA problem not well specified
4 years & 280 days ago · Resolved
example solution looks incorrect to me
3 years & 348 days ago · Resolved
Missing prerequisity
4 years & 87 days ago · Resolved
Wrong statistics
4 years & 302 days ago · Resolved

Followers 

Rosalind · Community Support for Rosalind · Powered by UserRules · Terms