Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

i just made a cute 'hello world' app

Name: Anonymous 2017-07-29 17:56

https://pastebin.com/qprgVAmc
(couldn't post it here)

Name: Anonymous 2017-08-17 6:40

>>87
but you're wrong. range in py3 is the same as xrange in py2. py3 removed the eager version and removed the lazy one:

FIOC2

In [1]: r = range(0,10)

In [2]: r
Out[2]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

In [3]: x = xrange(0,10)

In [4]: x
Out[4]: xrange(10)

In [5]: list(x)
Out[5]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]


FIOC3

[1]: r = range(10)

In [2]: r
Out[2]: range(0, 10)

In [3]: list(r)
Out[3]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]


also check'em

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List