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

Beginner in python

2021-10-25 Thread Kian Kwame
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 -- https://mail.python.org/mailman/listinfo/python-list

Re: beginner in python

2007-08-02 Thread Andy Cheesman
(http://pymol.sourceforge.net/) they might have some of the functionality which you desire already coded! HTH Andy Steve Holden wrote: > Beema shafreen wrote: >> hi everybody, >> I am beginner in python >> I have to calculate the euclidean distance between the atoms from a pdb >> fil

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', > &#x

Re: beginner in python

2007-08-02 Thread km
consider the whole line in the data file, they are all unique - there is no redundancy. KM --- On 8/2/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > > Hi everybody , > I am a beginner in python, > I have to f

beginner in python

2007-08-02 Thread Beema shafreen
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.strip() # splitted = data.split('#')

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 > a

beginner in python

2007-08-01 Thread Beema shafreen
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 = [] z_value = [] fh = open("1K5N.pdb"

beginner in python

2007-08-01 Thread Beema shafreen
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.strip() # splitted = data.split('#')