Cutting a deck of cards
Marc Christiansen
usenetmail at solar-empire.de
Sun May 26 16:13:55 EDT 2013
Carlos Nepomuceno <carlosnepomuceno at outlook.com> wrote:
> ----------------------------------------
>> From: usenetmail at 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
More information about the Python-list
mailing list