Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #50168

Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:file': 0.07; 'function,': 0.09; 'parameter': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:script': 0.09; 'subject:How': 0.10; 'question.': 0.14; 'random': 0.14; 'posted': 0.15; 'accepts': 0.16; 'determines': 0.16; 'different,': 0.16; 'icon': 0.16; 'prefixed': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'student,': 0.16; 'subject: \n ': 0.16; 'subject:.txt': 0.16; 'subject:random': 0.16; 'this)': 0.16; '(you': 0.16; 'wrote:': 0.18; 'library': 0.18; 'looked': 0.18; 'import': 0.22; 'header:User-Agent:1': 0.23; 'subject: .': 0.24; 'question': 0.24; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'subject:numbers': 0.31; 'another': 0.32; 'entirely': 0.33; 'actual': 0.34; 'next': 0.36; "didn't": 0.36; 'subject:?': 0.36; 'changing': 0.37; 'example,': 0.37; 'starting': 0.37; 'gmail': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'even': 0.60; 'dave': 0.60; 'new': 0.61; 'first': 0.61; 'address': 0.63; 'name': 0.63; 'july': 0.63; 'our': 0.64; 'subject': 0.69; 'prize': 0.74; 'saw': 0.77; 'different.': 0.84; 'each,': 0.84; 'angel': 0.91; 'thoroughly': 0.91; 'was:': 0.91; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file?
Date Mon, 08 Jul 2013 16:17:15 -0400
References <25284710-bf3f-4e10-bac2-0ba19099f653@googlegroups.com> <kreb6l$5lk$1@ger.gmane.org> <CAN1F8qVYq9YHj-JkS9KD0zZnJkxDmCC0O_ECTnCatb7XCGNwgw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 174.32.174.33
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
In-Reply-To <CAN1F8qVYq9YHj-JkS9KD0zZnJkxDmCC0O_ECTnCatb7XCGNwgw@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4395.1373314653.3114.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1373314654 news.xs4all.nl 15936 [2001:888:2000:d::a6]:36025
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:50168

Show key headers only | View raw


On 07/08/2013 09:10 AM, Joshua Landau wrote:
> On 8 July 2013 13:27, Dave Angel <davea@davea.name> wrote:
>> One of your classmates has already posted the question.  However, you win
>> the prize for a better subject line.  Or are you the same student, changing
>> your name and wasting our time by starting a new thread.
>
> Considering the body of the question and his GMail user icon thingy
> are identical, I think that's a rigged question.
>

I didn't notice that the actual gmail address was the same; somehow when 
I saw it prefixed by the Sanza101 and Kenz09 it looked different.

However, the body was entirely different, thoroughly rephrased.

For example, first question in each, respectively, was:

Create another function that generates a random number (You will have to 
import the relevant library to do this)

Create a function that is called from the main function, that accepts a 
number as a parameter and determines if the number is even or odd.
the next one is,



-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How do I write a script to generate 10 random EVEN numbers and write them to a .txt file? Kenz09 <sandile.mnukwa@gmail.com> - 2013-07-08 05:01 -0700
  Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file? Dave Angel <davea@davea.name> - 2013-07-08 08:27 -0400
  Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file? Joshua Landau <joshua.landau.ws@gmail.com> - 2013-07-08 14:10 +0100
  Re: How do I write a script to generate 10 random EVEN numbers and write them to a .txt file? Dave Angel <davea@davea.name> - 2013-07-08 16:17 -0400

csiph-web