Exercise: Counting Lines, Words, Characters

Write a program wc.py that takes a filename from the commandline and counts

  • Lines

  • Words

  • Characters

and then outputs the gathered statistics to stdout