![]() |
|
#1
|
|||
|
|||
Determine the number of words and charactersI need help with a program that determines the number of words and characters, so far all I have is
input string def wcount(f): """Print three numbers showing the count of lines, words and characters in the file f . input = words input = characters def findInstances(t, s): """Print the list of all indices with string s where an instance of the substring t is found. raw input = words raw input = characters output = words & characters |
|||
|
#2
|
|||
|
|||
Re: Need help with a program..hey, r u trying to write a program that counts characters and words and lines from the file ??
if so, let me know. i can help you with that. |
|
#3
|
|||
|
|||
Re: Determine the number of words and charactersyes that is what i am trying to do
|
|
#4
|
|||
|
|||
Re: Determine the number of words and charactersHere is program that I did while back couple of weeks ago.
It's written all in one window instead of throughout different windows. I am not sure how you guys are programming but our teacher is teaching us different ways to do it. The file name has to be different since I had it named different Python Code:
Last edited by admin : 27-Feb-2008 at 05:49.
Reason: Please insert your example Python codes between [PY] and [/PY] tags
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| Text-Based Roulette Game | mfm1983 | C++ Forum | 5 | 29-Nov-2006 13:20 |
| BOOKEEPING program, HELP!! | yabud | C Programming Language | 10 | 17-Nov-2006 04:48 |
| Pipeline freeze simulation | darklightred | C++ Forum | 6 | 27-Jul-2006 20:37 |
| How to read particular memory location ? | realnapster | C Programming Language | 10 | 10-May-2006 10:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The