Re: Question on List

2008-06-27 Thread subhabrata . iisc
Hi Chris, I solved the problem some other way round but thanx for your suggestion, I'll review it also. Best Regards, Subhabrata. Chris wrote: > On Jun 27, 9:51�am, [EMAIL PROTECTED] wrote: > > Dear All, > > I am trying to write the following code: > > > > def try1(n): > > � � � � a1="God Godess B

Question on List

2008-06-27 Thread subhabrata . iisc
Dear All, I am trying to write the following code: def try1(n): a1="God Godess Borother Sister Family" a2=a1.split() a3=raw_input("PRINT A WORD") a4=a1.find(a3) print a4 a5=[] if a4>0: a5=a2.index(a3) a6=a5+1

Re: Question on time module

2008-06-27 Thread subhabrata . iisc
This problem is solved with time.gmtime [EMAIL PROTECTED] wrote: > Dear Members of the group, > I have one function > def sum1(n): > a1=5 > a2=6 > a3=a1+a2 > a4=a3+8 > print "The First sum is" > print a3 > print "The Second sum is" > print a4 > > Now

Question on time module

2008-06-26 Thread subhabrata . iisc
Dear Members of the group, I have one function def sum1(n): a1=5 a2=6 a3=a1+a2 a4=a3+8 print "The First sum is" print a3 print "The Second sum is" print a4 Now, I want to do it in a way, a4 is calculated after a given time interval of a3 -this is eas

Re: HTML FORM AND PYTHON

2008-06-15 Thread subhabrata . iisc
Hi Diez, Thanx for the suggestion. I am checking if anything helpful I can find there. Regards, Subhabrata. Diez B. Roggisch wrote: > [EMAIL PROTECTED] schrieb: > > Dear Members of the group, > > I have a small question, if you can help me to find the answer. > > I have one function: > > def add_s

Re: error showing file not found

2008-06-13 Thread subhabrata . iisc
You can see the file whether it is loaded in C:\Python and you entered it correctly. Problem should not occur. Else you may refer Python docs for Error and Exception handling. Regs, Subhabrata. [EMAIL PROTECTED] wrote: > Hi, > I am new to python.I have installed Biopython in Windows.I am working >

Re: hi

2008-06-13 Thread subhabrata . iisc
Islam is a nice religion if you read The quran. Militancy is their in every religion. But unfortunately, Islam is getting a bad name. It is good to see that some one like you is trying to let us know the good part of it. But this may not be a room for that. You might have been wrongly directed here

HTML FORM AND PYTHON

2008-06-13 Thread subhabrata . iisc
Dear Members of the group, I have a small question, if you can help me to find the answer. I have one function: def add_string(n): print “Print Two strings” print “Print the First String” a1=raw_input(“PRINT THE FIRST STRING”) a2=raw_input(“PRINT THE SECOND STRING”)

Re: best way to create a timer

2008-06-13 Thread subhabrata . iisc
You can think of doing with import time module and time.sleep(n) but you have to calculate n in seconds. Subhabrata. Alexnb wrote: > I am wondering what is the best way to create a timer, like an alarm, once it > reaches a time, it triggers an event. I have a way of doing this but it > seems like

Error handling in Python

2008-05-28 Thread subhabrata . iisc
Dear Members of the group, If I open a url by urlopen in the urllib, the file is either opening a file or if no url is there it would give error. The error is generated can be handled by IOError handling schemes. But if there are thousands or millions of URLs and I do not know who will open and who

Problem with py2exe

2008-05-28 Thread subhabrata . iisc
Dear Members of the group, py2exe does not seem to be integrating with 2.5 or later versions. I was trying to run it but requested only for 2.3. How can I run it? If any one can kindly help. Regards, Subhabrata Banerjee. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a web page with Python

2008-05-28 Thread subhabrata . iisc
Dear Mike, Thanx your solutions came to the very point. And you understood the problem so nicely. It is just perfect. Great. Regards, Subhabrata Banerjee. Mike Driscoll wrote: > On May 27, 9:25�am, [EMAIL PROTECTED] wrote: > > Dear Members of the group, > > If any one can help me with an idea how

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
I am getting the comments. So any one can post any comment like Steve knows nothing of Python. California has still lot to catch up to be at par with Mesopatamia. comp.lang.python seems a group of fools. Anyhow, all I learnt take whichever suits and ignore rest many people have lot of time to carr

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
Hi Steve, comp.lang.python is supposed to be a serious group not anyone knowing nothing and giving comment. Well, original code snippet I don't know why an expert person like you fails to understand, I told it almost can't you guess the next portion? Tough indeed, then. I've to take permission from

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
Dear Sir, Thank you for taking time out to answer. For (i) It is happening. On trial it ran so well that when on demonstration I got questions from tester, I felt amazed. For (ii) For answer no.2 I'll check str.find. For (iii) Well I said you most of crawler's algorithm. It works like a MS IE synch

PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-08 Thread subhabrata . iisc
I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v. 1310 32 bit (Intel)] on win32 with IDLE 1.2.1 My O/S is Windows XP SP2 I use 512 MB RAM. I am encountering the following problems: (i) a1=1 a2=2 a3=a1+a2 print a3 # The result is coming sometimes as 3 sometimes as vague