Re: [Tutor] [off-topic] Any thread for linux troubleshooting

2011-11-12 Thread Ken G.
On 12/11/11 17:54, Bikash Sahoo wrote: Can you please refer some threads for linux troubleshooting queries ?? Not so much a thread but the Ubuntu web forum is a good starting place and thereare tons of Linux news groups. Try a search on Google groups as your starting point. Also the Linux

Re: [Tutor] [off-topic] Any thread for linux troubleshooting

2011-11-12 Thread Alan Gauld
On 12/11/11 17:54, Bikash Sahoo wrote: Can you please refer some threads for linux troubleshooting queries ?? Not so much a thread but the Ubuntu web forum is a good starting place and there are tons of Linux news groups. Try a search on Google groups as your starting point. Also the Linux

Re: [Tutor] Suggest Book

2011-11-12 Thread amt
Hi Pankaj! Have a look at : http://wiki.python.org/moin/BeginnersGuide http://norvig.com/21-days.html I'm currently learning from this book: http://learnpythonthehardway.org/book/ Have a look. It's a good book for starting out. Just pick one that you like and start learning. I wish you good

Re: [Tutor] longest common substring

2011-11-12 Thread Joel Goldstick
On Sat, Nov 12, 2011 at 11:40 AM, Andreas Perstinger < andreas.perstin...@gmx.net> wrote: > On 2011-11-12 16:24, lina wrote: > >> Thanks, ^_^, now better. >> > > No, I'm afraid you are still not understanding. > > > I checked, the sublist (list) here can't be as a key of the results >> (dict). >>

[Tutor] [off-topic] Any thread for linux troubleshooting

2011-11-12 Thread Bikash Sahoo
Hi All : Sorry guys , i know this is not the right thread. Just wanted to bump off a question . I am new to python and have just installed linux(new to linux as well :) ) on my system. It has both the Windows 7 and Ubuntu 11.0 now. Can you please refer some threads for linux troubleshooting queri

Re: [Tutor] longest common substring

2011-11-12 Thread Andreas Perstinger
On 2011-11-12 16:24, lina wrote: Thanks, ^_^, now better. No, I'm afraid you are still not understanding. I checked, the sublist (list) here can't be as a key of the results (dict). "result" isn't a dictionary. It started as an empty list and later becomes a null object ("NoneType"). You

Re: [Tutor] longest common substring

2011-11-12 Thread lina
On Sat, Nov 12, 2011 at 10:57 PM, Dave Angel wrote: > On 11/12/2011 09:48 AM, lina wrote: >> >> On Sat, Nov 12, 2011 at 9:22 PM, Dave Angel  wrote: >>> >>> On 11/12/2011 03:54 AM, lina wrote: The one I tried :                 if longest>= 2:                     sublist=L1

Re: [Tutor] longest common substring

2011-11-12 Thread Dave Angel
On 11/12/2011 09:48 AM, lina wrote: On Sat, Nov 12, 2011 at 9:22 PM, Dave Angel wrote: On 11/12/2011 03:54 AM, lina wrote: The one I tried : if longest>= 2: sublist=L1[x_longest-longest:x_longest] result=result.append(sublist)

Re: [Tutor] longest common substring

2011-11-12 Thread lina
On Sat, Nov 12, 2011 at 9:22 PM, Dave Angel wrote: > On 11/12/2011 03:54 AM, lina wrote: >> >> >> The one I tried : >>                 if longest>= 2: >>                     sublist=L1[x_longest-longest:x_longest] >>                     result=result.append(sublist) >>                     if subl

Re: [Tutor] Time subtractrion

2011-11-12 Thread Wayne Werner
On Sat, Nov 12, 2011 at 6:07 AM, Cameron Macleod wrote: > Hi, > > I've been trying to code a timer that tells you how long you've been on > the net and I can't figure out how to produce a figure in hours, minutes > and seconds that is constantly being updated. If anyone could point out a > module

Re: [Tutor] longest common substring

2011-11-12 Thread Dave Angel
On 11/12/2011 03:54 AM, lina wrote: The one I tried : if longest>= 2: sublist=L1[x_longest-longest:x_longest] result=result.append(sublist) if sublist not in sublists: sublists.append(sublis

Re: [Tutor] (no subject)

2011-11-12 Thread Andreas Perstinger
On 2011-11-12 10:33, Alan Gauld wrote: On 11/11/11 22:17, Andreas Perstinger wrote: I don't know about windows but if you want to run the script from the command line you have to add: if __name__ == "__main__": main() No, you only need to do that if you plan on using the file as a module

[Tutor] Time subtractrion

2011-11-12 Thread Cameron Macleod
Hi, I've been trying to code a timer that tells you how long you've been on the net and I can't figure out how to produce a figure in hours, minutes and seconds that is constantly being updated. If anyone could point out a module with functions like this or built in functions, I'd be very grateful

Re: [Tutor] Hello again. Still the same problem, different question.

2011-11-12 Thread Robert Sjoblom
On 12 November 2011 07:27, wrote: > Send Tutor mailing list submissions to >        tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit >        http://mail.python.org/mailman/listinfo/tutor > or, via email, send a message with subject or body 'help' to >        tutor-r

Re: [Tutor] (no subject)

2011-11-12 Thread Alan Gauld
On 11/11/11 22:17, Andreas Perstinger wrote: I don't know about windows but if you want to run the script from the command line you have to add: if __name__ == "__main__": main() No, you only need to do that if you plan on using the file as a module at some point. If you don't need a module

Re: [Tutor] longest common substring

2011-11-12 Thread lina
Sorry I finished last email in two different time, while: > INFILEEXT=".doc" > > > def CommonSublist(L1, L2): >    sublist=[] >    sublists=[] >    result=[] >    M = [[0]*(1+len(L2)) for i in range(1+len(L1))] >    longest, x_longest = 0, 0 >    for x in range(1,1+len(L1)): >        for y in ra

Re: [Tutor] longest common substring

2011-11-12 Thread lina
On Sat, Nov 12, 2011 at 5:49 AM, Andreas Perstinger wrote: > First, just a little rant :-) > It doesn't help to randomly change some lines or introduce some new concepts > you don't understand yet and then hope to get the right result. Your chances > are very small that this will be succesful. > Y