Re: [Tutor] Python Script Testing

2018-03-15 Thread Alan Gauld via Tutor
Please always use Reply All or Reply List when responding to list emails. Farwarding to list... On 15/03/18 17:47, Gaurav Parashar wrote: > Opening the file inside the script seems the only possible solution. > As far as I remember about the coursera course, the gave the input > file, and we need

Re: [Tutor] Python Script Testing

2018-03-15 Thread Alex Kleider
On 2018-03-15 09:56, Preeti Saxena wrote: Hi, I am new to python. I am trying to test my program, like a coursera submission, which takes run time arguments using "raw_input()". Is there a way I can write all the input data into a file and pass it from command line to the script? 1. I have t

Re: [Tutor] Python Script Testing

2018-03-15 Thread Alan Gauld via Tutor
On 15/03/18 16:56, Preeti Saxena wrote: > Hi, >I am new to python. I am trying to test my program, like a coursera > submission, which takes run time arguments using "raw_input()". Is there a > way I can write all the input data into a file and pass it from command > line to the script? In nor

[Tutor] Python Script Testing

2018-03-15 Thread Preeti Saxena
Hi, I am new to python. I am trying to test my program, like a coursera submission, which takes run time arguments using "raw_input()". Is there a way I can write all the input data into a file and pass it from command line to the script? 1. I have to use "raw_input". 2. I do not wish to open a