Path: csiph.com!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Marc Christiansen Newsgroups: comp.lang.python Subject: Re: Cutting a deck of cards Date: Sun, 26 May 2013 22:13:55 +0200 Lines: 16 Sender: Message-ID: <317a7a-jot.ln1@pluto.solar-empire.de> References: <4d02f46f-8264-41bf-a254-d1c20469626e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de BLpbr3mA+Xd80FLW0BAubgupIKrmMxmvXy4RNBbl/p9J9UVb8= X-Orig-Path: not-for-mail User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.8.13-gentoo (x86_64)) Xref: csiph.com comp.lang.python:46112 Carlos Nepomuceno wrote: > ---------------------------------------- >> From: usenetmail@solar-empire.de > [...] >> Not in Python3.x >>>>> decks = 6 >>>>> list(range(13 * 4 * decks)) == range(13 * 4 * decks) >> False > > What does "list(range(13 * 4 * decks))" returns in Python 3? A list of course. But Py3 range is very similar to Py2 xrange, it returns a range object. AdiaĆ­ Marc