Jan-20-2017, 05:08 AM
the command line argument would be a filename in the coding used by the host system. if the given name is what the platform normally uses to designate reading standard input or is missing, then the input will be stdin. each byte/character of input will be counted, based on separate counters for each value. output will be after end of file on input. output will spell out the frequency of each byte/character of input and will show that frequency in some order sorted either by the byte/character value or the frequency count.
the code should work under python 3 as a minimum. it can be made to work under both python 2 and python 3 by any known method of doing that (such as version checks), or by having separate code for each.
the code should work under python 3 as a minimum. it can be made to work under both python 2 and python 3 by any known method of doing that (such as version checks), or by having separate code for each.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.