[Tutor] Re: Printing two elements in a list

2004-12-19 Thread C Smith
Jacob S. wrote: Would this work for you? a = ['Name = stuff','CGTATAGCTAGCTA','Name = stuff','CGATATGCCGGCTA'] for index,thing in enumerate(a): if "Name=" in thing: del a[index] I know, that it might be slow, but I thought that maybe it would hold its own because it doesn't have to imp

Re: [Tutor] Matrix

2004-12-19 Thread Brian van den Broek
Rob Kapteyn said unto the world upon 2004-12-19 22:44: Hello to the list ! A list of lists is the most logical construction. But -- you don't need to assemble the rows separately -- this works too: >>> my_matrix_as_lists = [ [4, 6, 8, 1],\ ... [2, 5, 1, 3],\ ...

Re: [Tutor] Matrix

2004-12-19 Thread Rob Kapteyn
Juan: Thanks for the tip, but the correct address seems to be: http://www.scipy.com/ the .org does not answer. Now I have to check out the graphing tools they have:-) Rob On Dec 19, 2004, at 8:01 PM, Juan Shen wrote: Try SciPy. http://www.scipy.org/ It has mat class to handle matrix and much els

Re: [Tutor] Matrix

2004-12-19 Thread Rob Kapteyn
Hello to the list ! A list of lists is the most logical construction. But -- you don't need to assemble the rows separately -- this works too: >>> my_matrix_as_lists = [ [4, 6, 8, 1],\ ... [2, 5, 1, 3],\ ... [2, 1, 2, 8] ]

Re: [Tutor] Matrix

2004-12-19 Thread Juan Shen
Try SciPy. http://www.scipy.org/ It has mat class to handle matrix and much else. Juan Bugra Cakir wrote: hi, I want to create a matrix in Python. For example 3x4 how can i create this? thanks ___ Tutor maillist - [EMAIL PROTECTED] http://mail.pyt

Re: [Tutor] Vpython

2004-12-19 Thread Juan Shen
If you need to plot many math pictures, try SciPy     http://www.scipy.org/ I have galanced VPython's website and tutorial.  It seems it handles 3D-Plotting even better.     Juan Aztech Guy wrote: Hey, that's pretty good. Tried it out. VPython is cool too. --- "Jacob S." <[EMAIL PROTECTED]

Re: [Tutor] OT: Flow chart

2004-12-19 Thread Juan Shen
Brian van den Broek wrote: Alan Gauld said unto the world upon 2004-12-19 12:23: I'm looking for any good link or tutorial of flow charting A good resource for all notations related to software design is at smartdraw.com: http://www.smartdraw.com/exp/tec/tutorials/software.htm But flow charts a

Re: [Tutor] OT: Flow chart

2004-12-19 Thread Brian van den Broek
Alan Gauld said unto the world upon 2004-12-19 12:23: I'm looking for any good link or tutorial of flow charting A good resource for all notations related to software design is at smartdraw.com: http://www.smartdraw.com/exp/tec/tutorials/software.htm But flow charts are more generic so info abo

Re: [Tutor] Matrix

2004-12-19 Thread Brian van den Broek
Bugra Cakir said unto the world upon 2004-12-19 10:33: hi, I want to create a matrix in Python. For example 3x4 how can i create this? thanks ___ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor Hi, at least two ways usin

Re: [Tutor] Problems with class, no output

2004-12-19 Thread Dave S
Kent Johnson wrote: Dave, For some reason the indentation is very strange in this code. I think it must have something to do with how you posted it (or my mailer is messing it up?), as it would be a syntax error at runtime. If you can have more consistent indentation in your posts it will make t

Re: [Tutor] Printing two elements in a list

2004-12-19 Thread Jacob S.
Would this work for you? a = ['Name = stuff','CGTATAGCTAGCTA','Name = stuff','CGATATGCCGGCTA'] for index,thing in enumerate(a): if "Name=" in thing: del a[index] I know, that it might be slow, but I thought that maybe it would hold its own because it doesn't have to import the re modu

Re: [Tutor] OT: Flow chart

2004-12-19 Thread Alan Gauld
> I'm looking for any good link or tutorial of flow charting A good resource for all notations related to software design is at smartdraw.com: http://www.smartdraw.com/exp/tec/tutorials/software.htm But flow charts are more generic so info about them can be found here: http://www.smartdraw.c

Re: [Tutor] Vpython

2004-12-19 Thread Aztech Guy
Hey, that's pretty good. Tried it out. VPython is cool too. --- "Jacob S." <[EMAIL PROTECTED]> wrote: > > > I was wondering were can I find some Vpython > graphics program codes that > are readily available. > > I have 2 that I am proud of. > > A simple function grapher > Usage: > >0.125*x**2

[Tutor] Matrix

2004-12-19 Thread Bugra Cakir
hi, I want to create a matrix in Python. For example 3x4 how can i create this? thanks ___ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Problems with class, no output

2004-12-19 Thread Kent Johnson
Dave, For some reason the indentation is very strange in this code. I think it must have something to do with how you posted it (or my mailer is messing it up?), as it would be a syntax error at runtime. If you can have more consistent indentation in your posts it will make them much easier to re

Re: [Tutor] Problems with class, no output

2004-12-19 Thread Dave S
Dave S wrote: Hello again :-) , This script is very much a work in progress, and I think only the second time I have tried classes. What I expected it to do was to at least print 'hi there' so I know its alive, then dump some status info to my log program. It does zip, executes OK but no output

[Tutor] Problems with class, no output

2004-12-19 Thread Dave S
Hello again :-) , This script is very much a work in progress, and I think only the second time I have tried classes. What I expected it to do was to at least print 'hi there' so I know its alive, then dump some status info to my log program. It does zip, executes OK but no output. I just know

[Tutor] Re: OT: Flow chart

2004-12-19 Thread Jorge Luiz Godoy Filho
Eri Mendz, Domingo 19 Dezembro 2004 08:35, wrote: > Hello All, > > I'm looking for any good link or tutorial of flow charting i can use > related for programming. Maybe having symbols and similar stuffs. This may > sound old-fashion or antiquated to you but i feel this may help me with > the logi

[Tutor] OT: Flow chart

2004-12-19 Thread Eri Mendz
Hello All, I'm looking for any good link or tutorial of flow charting i can use related for programming. Maybe having symbols and similar stuffs. This may sound old-fashion or antiquated to you but i feel this may help me with the logic and flow controls when i do code in python. Anyone pointin

Re: [Tutor] Re: A simpler mousetrap

2004-12-19 Thread Alan Gauld
> Also, just as interesting, yet probably less reliable: > > a = list(a) > a[-3:] = 'bak' > a = "".join(a) > The problem with all of these versions is they assume the extension will be three characters long. In DOS it could be *up to* three characters, but in Windows post 95 the extension can be

Re: [Tutor] Re: A simpler mousetrap

2004-12-19 Thread Alan Gauld
Rats, a premature posting sorry. > > Also, just as interesting, yet probably less reliable: > > > > a = list(a) > > a[-3:] = 'bak' > > a = "".join(a) > > > The problem with all of these versions is they assume the > extension will be three characters long. In DOS it could be *up to* > three charac