Added Note for xrange

Python 3 does not have xrange(). Uses range() instead.
This commit is contained in:
Kuldeep Singh
2016-01-25 23:09:42 +05:30
parent e6fb422d45
commit 7aca6814e2
+3 -1
View File
@@ -349,7 +349,9 @@ Instead, use a list comprehension:
.. code-block:: python
four_lists = [[] for __ in range(4)]
four_lists = [[] for __ in xrange(4)]
Note: Use range() instead of xrange() in Python 3
Create a string from a list
~~~~~~~~~~~~~~~~~~~~~~~~~~~