Just checkin'
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
___
Tutor maillist - Tutor@python.org
To
On Tue, Sep 20, 2016, at 11:48, Gabriele Brambilla wrote:
> I have this script
...
> points = 3375000
...
> for iw in range(points):
> print iw
> does it mean that my number of points is too high?
Probably. The most likely thing to cause something to exit with a status
of "Killed"
Hello-
On 2016-09-20 11:48, Gabriele Brambilla wrote:
> does it mean that my number of points is too high?
In short, yes. From your usage of the 'print' statement, you are running
the code under Python 2.x. In this version of Python, the 'range'
function creates a full list of numbers, and so you
On Tue, Sep 20, 2016 at 11:48:47AM -0400, Gabriele Brambilla wrote:
> Hi,
>
> I have this script
[...]
> print "pastopens"
> for iw in range(points):
> print iw
>
>
> But when I run it it is killed in the for cycle, it doesn't print any
> number:
>
> [gabriele:~/Desktop/GITcode]
On Mon, Sep 19, 2016 at 11:01:30PM +, Gampper, Terry wrote:
> Hello
> I started my journey with Python last week and find it to be an
> easy-to-learn language. I am currently teaching introduction to
> computer programming. One of the assignments we are working on
> involves an instructor gi
On 20.09.2016 17:48, Gabriele Brambilla wrote:
Hi,
I have this script
import numpy as np
import random as rnd
from math import *
import matplotlib.pyplot as plt
folder = '../NOBACKUP/heavi3/'
pre = '10'
dat = '.dat'
snshot = '4189'
d = 0.02
d2 = d/2.0
tot = 156
half = 78
points = 3375000
Gabriele Brambilla wrote:
> Hi,
>
> I have this script
> points = 3375000
> for iw in range(points):
> print iw
>
>
> But when I run it it is killed in the for cycle, it doesn't print any
> number:
>
> [gabriele:~/Desktop/GITcode] gbrambil% python EknotFromKostas.py
> im here
Hi,
The number was high but it was only a sort of test.now I learned how it
works,
thanks
Gb
On Sep 20, 2016 12:48 PM, "Matt Ruffalo" wrote:
> Hello-
>
> On 2016-09-20 11:48, Gabriele Brambilla wrote:
> > does it mean that my number of points is too high?
>
> In short, yes. From your usage of
You should probably convert scores to ints on input. At any rate,
here is your problem:
low_tscore = min(tscore1,tscore2,tscore3,tscore4,tscore5)
You need to convert tscore1, etc. to ints, otherwise min will give
lexical comparison (alphabetic order), not numeric order
On Mon, Sep 19, 2016 at 7
Hi,
I have this script
import numpy as np
import random as rnd
from math import *
import matplotlib.pyplot as plt
folder = '../NOBACKUP/heavi3/'
pre = '10'
dat = '.dat'
snshot = '4189'
d = 0.02
d2 = d/2.0
tot = 156
half = 78
points = 3375000
BxN = np.zeros((tot,tot,tot))
ByN = np.zeros((tot
Hello
I started my journey with Python last week and find it to be an easy-to-learn
language. I am currently teaching introduction to computer programming. One of
the assignments we are working on involves an instructor giving a series of 5
tests, and the lowest score is dropped, then calculatin
11 matches
Mail list logo