[Tutor] How can I modify this simple script for argparse?

Santosh Kumar sntshkmr60 at gmail.com
Sat Oct 13 19:03:56 CEST 2012

Here is a sample script without argparse implementation:

from sys import argv
script, filename = argv

foo = "This line was written by a Python script."

with open(filename, 'a') as file:

I find argparse hard. Just give me a startup. How can I make a asgparse version?

More information about the Tutor mailing list