Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; "subject:' ": 0.07; 'subject:help': 0.08; 'subject:using': 0.09; 'cc:addr:python- list': 0.11; 'def': 0.12; 'once.': 0.16; 'subject: \n ': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'steven': 0.31; 'url:python': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'up!': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'url:mail': 0.40; 'times': 0.62; 'face': 0.64; 'flipping': 0.84; 'seventh': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4bkAf/n6Wz+gYALiZn4FXWqoPMm0anFd1PiF9iUb1Us=; b=rUejZlVTPUVnwwGbvFRZImwrpUyHT2oeeBZY+HGgwEuUqocet/FbXcHkO9h5m7r7hw Y6p3sTmKQQUOn4O5Z5LDZdRAFMT5N7nellTbYwqVE8GcxfdoIK5M6RaJjxHnj3ElwG+E rU0DudS3ZZzM2/2cEjOyoHwyGzgU8ED1VuBmeq5EFKSV3Umw4ddjaFIwMXJRdoe/hZYm VQ63hfLhPvcxtERwRarp4aWVmf6lueqdXkw0lFQA4jrfoUJRvA4vIEyiPTuPF2+GWtmX sCPselgxrQN3jmxJR4hvsyeFl43O9dm48xR+HUsuN4Z5bvKu2+51Rk34T5ew1kh73rgc 43Yw== MIME-Version: 1.0 X-Received: by 10.49.26.198 with SMTP id n6mr23362985qeg.16.1369493206314; Sat, 25 May 2013 07:46:46 -0700 (PDT) In-Reply-To: <51a0ca91$0$30002$c3e8da3$5496439d@news.astraweb.com> References: <78192328-b31b-49d9-9cd6-ec742c092a29@googlegroups.com> <39ac7437-857e-483f-998c-8162c1039933@googlegroups.com> <51a052d1$0$6599$c3e8da3$5496439d@news.astraweb.com> <74e33270-a79a-4878-a400-8a6cda6637b2@googlegroups.com> <51a0ca91$0$30002$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 25 May 2013 15:46:46 +0100 Subject: Re: help how to sort a list in order of 'n' in python without using inbuilt functions?? From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: "Steven D'Aprano" Content-Type: multipart/alternative; boundary=047d7b67730415d2f804dd8bfcbe Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369493215 news.xs4all.nl 15936 [2001:888:2000:d::a6]:44188 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45998 --047d7b67730415d2f804dd8bfcbe Content-Type: text/plain; charset=ISO-8859-1 On 25 May 2013 15:35, "Steven D'Aprano" < steve+comp.lang.python@pearwood.info> wrote: > > On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote: > > > def random_number(): > > return 7 > > I call shenanigans! That value isn't generated randomly, you just made it > up! I rolled a die *hundreds* of times and not once did it come up seven! > > > > -- > Steven > -- > http://mail.python.org/mailman/listinfo/python-list Try flipping a coin. I flipped one a couple of times and got the seventh face once. --047d7b67730415d2f804dd8bfcbe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 25 May 2013 15:35, "Steven D'Aprano" <steve+comp.lang.python@pearwood.in= fo> wrote:
>
> On Sat, 25 May 2013 19:14:57 +1000, Chris Angelico wrote:
>
> > def random_number():
> > =A0 =A0 return 7
>
> I call shenanigans! That value isn't generated randomly, you just = made it
> up! I rolled a die *hundreds* of times and not once did it come up sev= en!
>
>
>
> --
> Steven
> --
> http:/= /mail.python.org/mailman/listinfo/python-list

Try flipping a coin. I flipped one a couple of times and got= the seventh face once.

--047d7b67730415d2f804dd8bfcbe--