Found on: http://docs.python.org/2.7/tutorial/datastructures.html in Section 5.6. "Looping Techniques" Correct the text from: for i in reversed(xrange(1,10,2)): to: for i in reversed(range(1,10,2)): Reason: Python 2.7 does not have xrange function
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 25.09.2013 14:35, schrieb Marc.Perlmutter@gdc4s.com:
Found on:
http://docs.python.org/2.7/tutorial/datastructures.html
in Section 5.6. ?Looping Techniques?
Correct the text from:
*for*i *in*reversed(xrange(1,10,2)):
to:
*for* i *in* reversed(range(1,10,2)):
Reason:
Python 2.7 does not have xrange function
Hi Marc, I think you're confusing Python 2 and 3; xrange is present in all 2.x versions but not in 3.x. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iEYEARECAAYFAlJRD5YACgkQN9GcIYhpnLBGpACgrDsZIRqexaFI/v5uSNoF/gbG //EAn2Q8chrL7oR2sshafXzPbrT0Afeq =idSZ -----END PGP SIGNATURE-----
participants (2)
-
Georg Brandl
-
Marc.Perlmutter@gdc4s.com