<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.python.tutor">
    <title>gmane.comp.python.tutor</title>
    <link>http://blog.gmane.org/gmane.comp.python.tutor</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81834"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81826"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81825"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81794"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81791"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81785"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81781"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81780"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81761"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81756"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81751"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81732"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81727"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81726"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81720"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81719"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81718"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81716"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81708"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.tutor/81706"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81834">
    <title>why can you swap an immutable tuple?</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81834</link>
    <description>&lt;pre&gt;I thought tuples were immutable but it seems you can swap them, so I'm
confused:

a,b = 5,8

print a  # result 5

a,b = b,a

print a  # result 8, so they swapped

# but if I test the type of a,b I get a tuple

testit = a,b
print type(testit)  #comes out as a tuple

print testit, # result is (8,5)

# So how am I swapping elements of a tuple when a tuple is immutable?

#t rying so change a tuple since I just did it

testit[1] = 14  #program crashes - *TypeError: 'tuple' object does not
support item assignment *so the tuple I just changed is indeed immutable

&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-25T18:56:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81826">
    <title>Flip the coin 10x and count heads and tails: It works now!</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81826</link>
    <description>&lt;pre&gt;Gents,

thank you all for your help. One of you guys asked me to try out your
suggestions and then tell you how it goes. Here we go! First, let me
recap briefly what the expected outcome of my program was and which
difficulties I encountered at the beginning. I was writing a program
in Python 3.3.0 which flips a coin 10 x times and then counts the
number of heads and tails. It obviously did something else than I
intended:

import random

print ("""

This program flips a coin 10 times.
It then counts the number of heads and tails.

""")

flips = 0
heads = 0
tails = 0

while flips &amp;lt; 10:
    flips = flips + 1
    if random.randint(1,2) == 1:
        heads = heads + 1
        print("We've got " + str(heads) + " heads here."
    if random.randint(1,2) == 2:
        tails = tails + 1
        print("We've got " + str(tails) + " tails here.")

This is what I got as output:

This program flips a coin 10 times.
It then counts the number of heads and tails.

We've got 1 tails here.
We've got 1 heads here.
We've got 2 t&lt;/pre&gt;</description>
    <dc:creator>Rafael Knuth</dc:creator>
    <dc:date>2013-05-25T09:25:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81825">
    <title>Jion list!</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81825</link>
    <description>&lt;pre&gt;Hi,i am JiangtaoSheng!!
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
&lt;/pre&gt;</description>
    <dc:creator>jiangtao sheng</dc:creator>
    <dc:date>2013-05-25T06:34:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81794">
    <title>Issue w/ program: Flip a coin and count heads and tails</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81794</link>
    <description>&lt;pre&gt;Hello,

I am writing a program in Python 3.3.0 which flips a coin 10 x times and
then counts the number of heads and tails. It obviously does something else
than I intended, and I am wondering what I did wrong:

import random

print ("""

This program flips a coin 10 times.

It then counts the number of heads and tails.

""")

flips = 0

heads = 0

tails = 0

while flips &amp;lt; 10:

    flips = flips + 1

    if random.randint(1,2) == 1:

        heads = heads + 1

        print("We've got " + str(heads) + " heads here."

    if random.randint(1,2) == 2:

        tails = tails + 1

        print("We've got " + str(tails) + " tails here.")

This is what I get as output:

This program flips a coin 10 times.

It then counts the number of heads and tails.

We've got 1 tails here.

We've got 1 heads here.

We've got 2 tails here.

We've got 2 heads here.

We've got 3 tails here.

We've got 3 heads here.

We've got 4 tails here.

We've got 5 tails here.

We've got 4 heads here.

We've got 6 tails here.

We've got 7 tai&lt;/pre&gt;</description>
    <dc:creator>Rafael Knuth</dc:creator>
    <dc:date>2013-05-24T11:01:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81791">
    <title>making a random list, then naming it</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81791</link>
    <description>&lt;pre&gt;I keep needing random lists of integers for trying things, so I wrote
a small prog I'll import as randlist. The user enters the length and
max val, but then I want the actual data name of the random list
created, to be   list_(length entered)_(max value entered)  as an easy
mnemonic.

I got as far as making the list, but my brain is fozzled on changing
the numbers entered into part of a data name. Feels like I have to go
outside the program to do it:

import random
random.seed

listparameters = raw_input('\nEnter two numbers, space separated, for
the length and largest value of a zero-starting random list, which can
be used as variable name:  randlist.list_len_max , where len is the
list length you entered, and max is the largest value\n')

listargs = listparameters.split()
rlist = []
length = int(listargs[0])
maxval = int(listargs[1])
for r in range(0,length):
    rlist.append(random.randint(0,maxval))

listlenmax = 'list' + '_' + str(length) + '_' + str(maxval)   # just
the name of a string, not the data n&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-24T02:39:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81785">
    <title>Difference between types</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81785</link>
    <description>&lt;pre&gt;I guess I'm understanding that, in Python, if something belongs to a type,
must also be a value.

I guess I'm understanding that the reason why 9 is considered a value, is
since it's a normal form*,* an element of the system that cannot be
rewritten and reduced any further.

I also guess I'm understanding that the same goes somehow for the letter A
for example, since it cannot be rewritten or reduced any further, so it's a
value too.

type('A')
&amp;lt;type 'str'&amp;gt;

The question is, in order to understand: does this apostrophes thing has a
more profound reason to be attached to the letters or it's just a
conventional way to set a difference between letters and numbers? Do I must
observe this apostrophes thing like the symbol of the type itself inside
which one can put any character, setting it as type str?
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
&lt;/pre&gt;</description>
    <dc:creator>Citizen Kant</dc:creator>
    <dc:date>2013-05-23T19:57:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81781">
    <title>Presenting text in different ways by using quotes!</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81781</link>
    <description>&lt;pre&gt;I am asked to present text in different ways by using quotes in strings. for example:

print("Program "Game Over" 2.0")

print("same", "message", "as before")

print("just", 

        "a bit", 

        "bigger")

print("Here", end=" ")
print("it is...")

print(

          """





    """
)

I can't however seem to input the text GAME OVER in giant text as it says in the book. Any help for this would be appreciated.

-Mitch Stevens_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
&lt;/pre&gt;</description>
    <dc:creator>Andrew Triplett</dc:creator>
    <dc:date>2013-05-23T17:31:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81780">
    <title>installing old versions of python on Mac OS X</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81780</link>
    <description>&lt;pre&gt;Hi,

I have Mac OS X 10.7.5 and would like to install &amp;lt; = python 2.3 on it.

I need it as one of the s/w I would like to try is based on an older version and does not seem to work with the new ones.
I am not sure if the s/w is wrong (doesn't seem like it) or is it really the python version that is messing it up.

I tried 2.4 (using mac ports) but thats not it so I want to go further back but I cannot do it with fink or mac ports.

Any other suggestions ? I tried to install using a tar file but that gave errors.
I am sorry for the dumb question. Thank you for the help
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

&lt;/pre&gt;</description>
    <dc:creator>Robert R</dc:creator>
    <dc:date>2013-05-23T16:58:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81761">
    <title>keyboard interrupt</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81761</link>
    <description>&lt;pre&gt;I made a simple ear frequency-tester, but I don't want it to go on
forever, so I tried stopping it when I  pressed a key, as below, but
that doesn't work. I did check out keyboard interrupts but they seem
unnecessarily complex just to stop a program. I'm not passing keys. Is
there something simple I'm missing?

import winsound

try:
    for freq in range(100,32000,100):
        winsound.Beep(freq, 1000)
except KeyboardInterrupt:
    pass

&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-22T19:47:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81756">
    <title>Available characters</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81756</link>
    <description>&lt;pre&gt;Does anybody know if there's a Python method that gives or stores the
complete list of ascii characters or unicode characters? The list of every
single character available would be perfect.

Thanks.
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
&lt;/pre&gt;</description>
    <dc:creator>Citizen Kant</dc:creator>
    <dc:date>2013-05-22T18:14:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81751">
    <title>To error statement or not to error statement</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81751</link>
    <description>&lt;pre&gt;
Then am I right to assume that rather than put in error statements I
barely understand at this point, the best thing would be to work the
hell out of the program in hope of seeing an error?  Does Python have
something that would do this automatically since I can't see running a
program a hundred times by hand?

Mainly, I'm just learning all this stuff for future reference. I
really doubt I'll need to use nose to find errors in twenty-line
programs. Print, assert, and staring at it for a long time should be
enough for now - and the Wing debugger now and then.

From the varied replies so far, it sounds to me that debugging is more
of an art than a science. So far the books I've looked at just mention
the basics but don't get into the philosophy of when and how.

Jim
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-22T16:27:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81732">
    <title>trying to split or rpartition the contents of a list</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81732</link>
    <description>&lt;pre&gt;Hi everyone.

I'm stuck on a problem while developing a small tool for Maya. Basically, I
have a folder with some filenames in it which have been returned by
os.listdir().
These filenames look something like...


apple_d.jpg
apple_si.jpg
apple_sg.jpg
box_d.jpg
box_si.jpg
pumpkin_d.jpg


Right now, I'm using os.listdir to get the filenames, and then each
filename becomes a selectable option in an option menu in maya. The code
is...

objects = os.listdir(dir)





    for object in objects:
        cmds.menuItem(label = object, parent = "objectMenu")



My problem is that I don't want duplicates of the same object in the menu
and I also want to truncate everything past and including the underscore.
So for eg, if my filenames are the same as the example above, I want to
change the list so I have this instead...

apple
box
pumpkin


I have tried splitting the filenames, but so far haven't had any luck.

for object in objects:
        sorted(set(object.split('_', 1)[0]))
        cmds.menuItem(label = object, pare&lt;/pre&gt;</description>
    <dc:creator>Stuart Tozer</dc:creator>
    <dc:date>2013-05-22T07:49:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81727">
    <title>try..except - what about that ton of **Error statements?</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81727</link>
    <description>&lt;pre&gt;I'm looking at Try..Except

Try:
     &amp;lt;some statements&amp;gt;
Except SomethingError as err:
    &amp;lt;other statements&amp;gt;

The list of error statements is huge. How do I know which error
statement to put in place of SomethingError (or multiple errors for
that matter)? Or is it best to just leave SomethingError blank until I
know more? ( I have an asymptotic learning curve, so I go off on a lot
of confused tangents, but I find it makes things go a lot faster after
a certain point.)

&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-22T05:46:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81726">
    <title>challenge-chapter 2</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81726</link>
    <description>&lt;pre&gt;I am on chapter two for Python Programming working on the challenges and the question is:

1. Create a list of legal and illegal variable names. Describe why each is either legal or illegal. Next, create a list of "good" and "bad" legal variable names. Describe why each is either a good or bad choice for a variable name.

Can you help me solve this problem?
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
&lt;/pre&gt;</description>
    <dc:creator>Andrew Triplett</dc:creator>
    <dc:date>2013-05-22T05:02:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81720">
    <title>still nosing around</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81720</link>
    <description>&lt;pre&gt;Okay, why is nose saying this run is OK when I purposely screwed it up?

import nose

def stand_and_deliver():
    return 52

def stupid_error():
    '''This is my stupid error'''
    assert stand_and_deliver() == 17

if __name__ == '__main__':
    nose.runmodule()

nose result:

Ran 0 tests in 0.000s

OK


&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-22T00:25:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81719">
    <title>nose error</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81719</link>
    <description>&lt;pre&gt;I'm trying a nose test on a simple prog. Once I got past the huge
traceback in Wing that made me think nose didn't work I realized the
prog tested okay. But I noticed at the end of the traceback nose says
this:

"c:\Python27\Lib\site-packages\nose-1.3.0-py2.7.egg\nose\core.py",
line 200, in runTests
    sys.exit(not self.success)
SystemExit: False

As i said, nose works and says Okay on the asserts (or not if I give
things a bad value). I was just wondering what they SystemExit: False
meant, or is that standard?

Jim

"When I got to high school I realized my name would always present
problems." --Dick Hertz
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-22T00:09:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81718">
    <title>Configuring Emacs for Python development?</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81718</link>
    <description>&lt;pre&gt;Okay. Since I first joined this list I have played around (as time
permitted) with these editors/IDEs: PyCharm, Eclipse with PyDev,
Notepad++, Emacs, IDLE, PyScripter, IdleX, Sublime Text, and possibly
others. Of course, I have far from mastered any of them, but I think
that I have a sense of what each is capable of plus an idea of their
quirks/bugs. I have found that I do not entirely like any of them. I
suppose that is normal. Of the above list I like Notepad++, PyCharm
and Emacs the best. I have decided to eliminate Notepad++ due to it
being tied entirely to Windows and that it does not have the power of
Emacs. I liked PyCharm enough that when a special Earth Day sale came
out, I purchased a license for it. Eventually, I think that I will
gravitate to this if I start creating truly large projects, but I
cannot use it at work. And it seems to be overkill for just beginning
in Python. And I don't like the idea of creating a project for what
amounts to one-off scripts.

So I am led to Emacs. I like the abili&lt;/pre&gt;</description>
    <dc:creator>boB Stepp</dc:creator>
    <dc:date>2013-05-21T18:18:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81716">
    <title>Hi Folks...Need help with a modified version of the Subsetsum problem.</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81716</link>
    <description>&lt;pre&gt;Hi there Tutor folks

I need your help with a modified version of the subset sum problem [
http://en.wikipedia.org/wiki/Subset_sum_problem].

The problem i am facing is a bit hard to describe (as most complex problem
always are :D ), so please bear with my longish articulation :)

Here it goes :

After scrubbing some input data, i have two lists 'minutes' (elements are
positive integers) &amp;amp; 'names' (elements are strings). They are the exact
same length and each element of one corresponds exactly with the respective
element of the other.

The elements in the minutes list are not unique; a sample list is :
minutes = [60, 45, 30, 45, 45, 5, 60, 45, 30, 30, 45, 60, 60, 45, 30, 30,
60, 30, 30 ]
names = ['abc', 'ghi', 'jkl', 'def', 'zab', 'wux', ........... ]

Now i need to pick some elements from the 'minutes' list (i.e. a subset of
minutes) which add up to a certain sum ('target_sum1').
I have to then do some processing with the *respective elements from the
'names' list, corresponding to, the elements i just pic&lt;/pre&gt;</description>
    <dc:creator>spiff007</dc:creator>
    <dc:date>2013-05-21T15:52:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81708">
    <title>still clarifying imorting</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81708</link>
    <description>&lt;pre&gt;If I make a package called jimlib with __init__.py in it, and a
program called bark.py in it, and even put it in site packages, I
still have to import the program with   import jimlib.bark

But I noticed that the pygraphics package is in site packages, and has
media.py in it, and all I have to do with that is import media,
without qualifying it with pygraphics, as in import pygraphics.media

Why don't I have to drill down for media.py as I do with jimlib?

&lt;/pre&gt;</description>
    <dc:creator>Jim Mooney</dc:creator>
    <dc:date>2013-05-21T01:43:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81706">
    <title>reducing lists within list to their set of unique values</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81706</link>
    <description>&lt;pre&gt;Hi python folks,
 
I have a list of lists that looks something like this: 
 
tst = [ [], ['test'], ['t1', 't2'], ['t1', 't1', 't2'] ]
 
I want to change the empty sets to a blank string, i.e., '' and the lists with repeat values to the unique set of values. So I have done the following: 
 
if len(t) == 0:
tst.__setitem__(tst.index(t), '')
else:
tst.__setitem__(tst.index(t), set(t))

What I get in return is 

['', set(['test']), set(['t2', 't1']), set(['t2', 't1'])]

The empty list is fine but the other lists seem to be expressions rather than values. What do I need to do to simply get the values back liike the following? 

['', ['test'], ['t2', 't1'], ['t2', 't1']]


Thanks, 
Bob
 



--------------------------------------------------------------------------------

NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer &lt;/pre&gt;</description>
    <dc:creator>Treder, Robert</dc:creator>
    <dc:date>2013-05-20T22:49:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.tutor/81697">
    <title>Random Number Game: Returns always the same number - why?</title>
    <link>http://comments.gmane.org/gmane.comp.python.tutor/81697</link>
    <description>&lt;pre&gt;Hello,

I wrote a simple program, and I was expecting that I would get 100
different random numbers. Instead, I am getting 100 times exactly the same
random number. Can anyone advise how I should alter my program?

Thank you!

All the best,

Rafael
PS. I am using Python 3.3.0

print ("""

This game will return 100 random numbers between 1 and 100.

""")

import random

Count = 0

Random_Number = random.randint(1, 100)

while Count &amp;lt;= 100:
    print (Random_Number)

    Count = Count + 1
_______________________________________________
Tutor maillist  -  Tutor&amp;lt; at &amp;gt;python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
&lt;/pre&gt;</description>
    <dc:creator>Rafael Knuth</dc:creator>
    <dc:date>2013-05-20T16:31:47</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.tutor">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.tutor</link>
  </textinput>
</rdf:RDF>
