Re: [Tutor] Euclidean Distances between Atoms in a Molecule.

2017-04-02 Thread Steven D'Aprano
On Sun, Apr 02, 2017 at 01:41:27PM -0400, Stephen P. Molnar wrote: > I am trying to port a program that I wrote in FORTRAN twenty years ago > into Python 3 and am having a hard time trying to calculate the > Euclidean distance between each atom in the molecule and every other > atom in the

Re: [Tutor] Euclidean Distances between Atoms in a Molecule.

2017-04-02 Thread Alan Gauld via Tutor
On 02/04/17 18:41, Stephen P. Molnar wrote: > I am trying to port a program that I wrote in FORTRAN twenty years ago > into Python 3 and am having a hard time trying to calculate the > Euclidean distance between each atom in the molecule and every other > atom in the molecule. Sounds highly

Re: [Tutor] (no subject)

2017-04-02 Thread Peter Otten
Белякова Анастасия wrote: > Hi there! How are you? > I need an advise. > > I need to get values from html form, but form.getvalues['query'] returns > None. I took a quick look into the cgi module, and FieldStorage class doesn't seem to have a getvalues attribute. You should get an exception

[Tutor] (no subject)

2017-04-02 Thread Белякова Анастасия
Hi there! How are you? I need an advise. I need to get values from html form, but form.getvalues['query'] returns None. Incorporated in function and not. The aim is to get the user input after filling form and clicking submit button. Here is a piece of code: form = cgi.FieldStorage() A =