Re: Can any body help me

2006-05-26 Thread John Salerno
Fredrik Lundh wrote: > Sidd wrote: > >> 1.Given a test file containing lines of words such as (abc, abb, >> abd,abb, etc), write a script that prints, in order of frequency, how >> many times each word appears in the file. >> >> Use dictionary datastructure in python and simple if-else statement.

Re: Can any body help me

2006-05-26 Thread gene tani
satish wrote: > how to write script for these > > 1.Given a test file containing lines of words such as (abc, abb, > abd,abb, etc), write a script that prints, in order of frequency, how > many times each word appears in the file. > > 2. > Write a script running in an endless loop that pings an IP

Re: Can any body help me

2006-05-26 Thread Tim Chase
> 1.Given a test file containing lines of words such as (abc, abb, > abd,abb, etc), write a script that prints, in order of frequency, how > many times each word appears in the file. solution 1) search the list archives...within the last week, someone wanted to count unique lines in an input fil

Re: Can any body help me

2006-05-26 Thread Bruno Desthuilliers
satish a écrit : > how to write script for these > (snip homework specifications) - read this: http://www.catb.org/~esr/faqs/smart-questions.html - browse the Python documentation - do the tutorial if needed - open you favorite code editor - do your homework If you're stuck, then post your code

Re: Can any body help me

2006-05-26 Thread bruno de chez modulix en face
1. read this: www.catb.org/~esr/faqs/smart-questions.html 2. do the Python tutorial 3. do your homework 4. when stuck, post your code here HTH -- http://mail.python.org/mailman/listinfo/python-list

Re: Can any body help me

2006-05-26 Thread Fredrik Lundh
Sidd wrote: > 1.Given a test file containing lines of words such as (abc, abb, > abd,abb, etc), write a script that prints, in order of frequency, how > many times each word appears in the file. > > Use dictionary datastructure in python and simple if-else statement. > Its simple give it a try.

Re: Can any body help me

2006-05-25 Thread Sidd
1.Given a test file containing lines of words such as (abc, abb, abd,abb, etc), write a script that prints, in order of frequency, how many times each word appears in the file. Use dictionary datastructure in python and simple if-else statement. Its simple give it a try. -- http://mail.python.or

Can any body help me

2006-05-25 Thread satish
how to write script for these 1.Given a test file containing lines of words such as (abc, abb, abd,abb, etc), write a script that prints, in order of frequency, how many times each word appears in the file. 2. Write a script running in an endless loop that pings an IP (specified on the command li