RE: Beginner in python

2021-10-25 Thread Avi Gross via Python-list
. Avi -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Monday, October 25, 2021 6:25 PM To: Python Subject: Re: Beginner in python On Tue, Oct 26, 2021 at 9:23 AM Kian Kwame wrote: > > hi buddie > am new to python somebody kindly advice the coding which w

Re: Beginner in python

2021-10-25 Thread Chris Angelico
On Tue, Oct 26, 2021 at 9:23 AM Kian Kwame wrote: > > hi buddie > am new to python somebody kindly advice the coding which will count odd > number from 1 to 10 , and counting number from 1 tp 100 Sounds like homework. What have you written so far? ChrisA -- https://mail.python.org/mailman/li

Re: beginner in python

2007-08-02 Thread Andy Cheesman
It looks like you are doing some sort of molecular science thing. Have you come across openbabel and the python bindings pybel (http://openbabel.sourceforge.net/wiki/Python#Pybel). I don't know how well they work but they might save you some effort. Also, check out pymol,(http://pymol.sourceforge.n

Re: beginner in python

2007-08-02 Thread Tim Williams
On 02/08/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > Hi everybody , > I am a beginner in python, > I have to fetch the redundant entries from a file, > > code: > > import re > L = [] > fh = open('ARCHITECTURE_MAIN.txt', > 'r') > for line in fh.readlines(): > data =line.st

Re: beginner in python

2007-08-02 Thread km
Hi pls redefine ur problem. I donot understand what u wanted to accomplish . is it that u wanted to check and represent the redundant entry numbers as one entry or is it with the isoform id as a single entry and without considering other data like start and stop ? also observe that when u consi

Re: beginner in python

2007-08-02 Thread km
Hi Welcome to python ! there a a few suggestions in ur code which is a good practice to follow. In the snippet: > > for x in range(len(x_value)): > > x_co = float(x_value[x])-float(x_value[x+1]) > > y_co = float(y_value[x])-float(y_value[x+1]) > > z_co = floa

Re: beginner in python

2007-08-01 Thread Steve Holden
Beema shafreen wrote: > hi everybody, >I am beginner in python > I have to calculate the euclidean distance between the atoms from a pdb > file > i have written the the code and its shows me some error , > the code: > import re > import string > import math > ab =[] > x_value = [] > y_value =