Re: [Tutor] File parsing

2011-06-16 Thread Neha P
Thanks James I guess i have to use the same code for text in yellow... seems like ther's no other way...  Regards, Neha From: James Reynolds To: Neha P Cc: "tutor@python.org" Sent: Thursday, June 16, 2011 2:43 PM Subject: Re: [Tutor] File pars

[Tutor] File parsing

2011-06-16 Thread Neha P
Hi all, I know below query may sound silly, but can somebody suggest any better way of doing this: It would be helpful. I need to read a file line by line and print each line starting from the last word first:   C:\Python26>type file_reversing_program.txt import sys import string f_obj=open(s

[Tutor] subprocess.Popen() OR subprocess.call() ?

2011-06-12 Thread Neha P
Hi all, I am newbie and want to know what is the difference between subprocess.Popen() and subprocess.call() ? when is it best to use each one? Any help appreciated!!  Regards, Neha___ Tutor maillist - Tutor@python.org To unsubscribe or change subsc

[Tutor] Python Interview Questions..

2011-05-24 Thread Neha P
Hey I'll be appearing for Job Interviews and wondering if anybody of you appeared for a Python Interview Or if on the other end as an interviewer.   Can you please share the questions asked?   That will be of great help :) Regards, Neha___ Tutor maillis

Re: [Tutor] Error in executing 'Python Filename.py'.

2011-05-19 Thread Neha P
Hey all, got the solution... Thanks for the help :) :) Just needed to from  C:\Python26>Python hello.py Its working fine... From: Neha P To: "tutor@python.org" Sent: Thursday, May 19, 2011 4:14 PM Subject: [Tutor] Error in executing 'Python

[Tutor] Error in executing 'Python Filename.py'.

2011-05-19 Thread Neha P
C:\>python hello.py 'python' is not recognized as an internal or external command, operable program or batch file. C:\>cd python26 C:\Python26>python Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more in