No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, Ok so this is a fun assignment, but I just can't figure it out. My Python program should ask the user for a series of words, then fill in the proper places in the story using the user’s answers. We will use the [...] notation for placeholders. For example, … |
|
Hello! I need to: 1. Prompt user for text file 2.Analyze file and graph (with bar plot)the 25 most frequent words with length greater than 4 3.The x axis needs to show the word. The a axis is the frequency. I've built the bulk of the program so far, but … |
|
Hello, I have to count the number of words in a .txt file. Here is my program so far [CODE]import string ofile=open(raw_input("Please enter the name of a text file :")) s=ofile.readlines() print s word_freq={} word_list=string.split(s) for word in word_list: count=word_freq.get(string.lower(word),0) word_freq[string.lower(word)]=count+1 keys=word_freq.keys() keys.sort() for word in keys: print word,word_freq[word][/CODE] As … |
|
Hello All, I'm working on my first Python plot in my programming class this week. My assignment is to write a program to plot data contained in a csv format. Here is the data: "Bowl number", "Date", "Bowl location", "Winner", "Number wings eaten" "I", "1/29/1993", "Wyndham Franklin Plaza Hotel", "Carmen … |