Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36190
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.099 |
| X-Spam-Evidence | '*H*': 0.80; '*S*': 0.00; 'elements.': 0.05; 'extent': 0.07; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'elements': 0.23; "haven't": 0.23; 'random': 0.24; 'tried': 0.25; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'probably': 0.29; 'lists': 0.31; 'code': 0.31; 'help,': 0.32; 'subject:List': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'christian': 0.34; 'list': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'short': 0.39; 'header:Received:5': 0.40; 'your': 0.60; "you've": 0.61; 'different': 0.63; 'sounds': 0.71; '2013': 0.84; 'gabriel': 0.84; 'ages': 0.91; 'taught': 0.97 |
| 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 :content-type; bh=U/hyiak14JQLuA1C6pD77ogm4VIH9Opz4Zw9zEBCiT8=; b=FZ7uIuTZhTC2ix0KFApVnJbZYXb42P6QiYiyi6WaWHEvj/2/gwNYexjV37Uh/KxBFm XoElIpA4Z3uw5fla4LtpTgf8bTDDuIuA3tg8jcuvJX5jXfLbcwWh/yQUxlYGsqcTz75p eTqy/tDX9V4SJjLmvLWo1v3gMWnR0qSURENNHcyc2FuiD5GABSOQMB9+4EMOiHBAkszs p/+wGdxh82EkOo0pJU68LaM3AAc3lD8o7UUos5HafXs5Von6C5VEdVDiBfdox7xc/L91 GzArV5ZUthpY4y9ypl7FSVkV+yks5UBVpKt83c8GhAktPocY3s26+omMEwLql9nziShn yDyQ== |
| MIME-Version | 1.0 |
| In-Reply-To | <ce887da5-1fad-49af-85e3-96ca41b7148c@googlegroups.com> |
| References | <ce887da5-1fad-49af-85e3-96ca41b7148c@googlegroups.com> |
| Date | Sun, 6 Jan 2013 02:59:16 +1100 |
| Subject | Re: Random List Loop?! |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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.128.1357401564.2939.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357401564 news.xs4all.nl 6920 [2001:888:2000:d::a6]:49390 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36190 |
Show key headers only | View raw
On Sun, Jan 6, 2013 at 2:47 AM, Christian Gabriel <gabrieldenmark@gmail.com> wrote: > Hi > > I have tried now for ages to make a loop that does the following: > > Makes a new list with 9 random values, from 9 different lists, with 9 elements. > > And makes sure that none of the elements repeat! > > Is there anyone that can help, with a very simple solution?? Sounds like a homework question to me. You've tried. What code have you come up with, and to what extent does it fall short of your goal? The nine different lists - do they have unique elements? Are you able to use sets? (If you haven't been taught what a set is, the answer's probably no.) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Random List Loop?! Christian Gabriel <gabrieldenmark@gmail.com> - 2013-01-05 07:47 -0800 Re: Random List Loop?! Roy Smith <roy@panix.com> - 2013-01-05 10:54 -0500 Re: Random List Loop?! Chris Angelico <rosuav@gmail.com> - 2013-01-06 02:59 +1100 Re: Random List Loop?! Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-01-05 16:02 +0000
csiph-web