On Wed, Apr 05, 2017 at 12:07:05PM -0700, Fazal Khan wrote:
> Hello,
>
> Heres another newbie python question: How can I loop through some data and
> assign different variables with each loop
You don't. That's a bad idea.
Instead, you use a sequence (a tuple, or a list), and use an index:
On 05/04/17 20:07, Fazal Khan wrote:
> assign different variables with each loop
You can't, but you can fake it...
> def BeamInfo(x):
> for Bnum in x:
> if plan1.IonBeamSequence[Bnum].ScanMode == 'MODULATED':
> TxTableAngle =
>
--
Message: 2
Date: Mon, 03 Apr 2017 11:36:10 +0200
From: Peter Otten <__pete...@web.de>
To: tutor@python.org
Subject: Re: [Tutor] Euclidean Distances between Atoms in a Molecule.
Message-ID:
Content-Type: text/plain;
Hello,
Heres another newbie python question: How can I loop through some data and
assign different variables with each loop
So this is my original code:
def BeamInfo(x):
for Bnum in x:
if plan1.IonBeamSequence[Bnum].ScanMode == 'MODULATED':
TxTableAngle =
On 2017-04-03, Mats Wichmann wrote:
> If you're talking about 4-digit year numbers using a Western
> calendar in digits of PI, the overlap effect seems unlikely to
> matter - let's say the year is 1919, do we think PI contains
> the sequence 191919? count would report back one
Wonderful! Thank you all so very much for all this invaluable expertise. We
have a lot of ways to make this work. We are excited to continue learning
so much.
Lisa
On Tue, Apr 4, 2017 at 8:15 PM, Marc Tompkins
wrote:
> On Tue, Apr 4, 2017 at 9:55 AM, Lisa Hasler Waters
Hello Guys,
I am just very happy to have finished my video project with Pack on a brief
introduction to Machine Learning via SciPy :
https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy-video
Previously, as you might know, we finished this one: