Re: Get input in Python

2011-01-23 Thread Chris Rebert
On Sun, Jan 23, 2011 at 10:10 PM, Santhosh Kumar wrote: > Hi all, >           I am trying to get input from the file open(sys.argv[1]). So, > while executing I will refer it as python filename.py  sample_file.txt  this > will root to my sys.argv[]. So I need to follow the same but I also need to >

Get input in Python

2011-01-23 Thread Santhosh Kumar
Hi all, I am trying to get input from the file* open(sys.argv[1]). *So, while executing I will refer it as python filename.py sample_file.txt this will root to my sys.argv[]. So I need to follow the same but I also need to give input Example : python filename.py . How should I do codi