# Read command line arguments inputFile = sys.argv[1] outputFile = sys.argv[2]

why we add these line

Hey @rakshit20141970, because when we run this .py from terminal we we will pass statement like,

python clean_review.py input_reviews.txt cleaned_reviews.txt 
              ^               ^                 ^
              |               |                 |

         argv[0]           argv[1]           argv[2]

So to get name of input file i.e. ‘input_reviews.txt’ and to get name of output file i.e. ‘cleaned_reviews.txt’

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :grinning:

Basically sys.argv is used to take command line inputs.