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.
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
> 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
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
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
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.
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
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