Change xrange function to range function

This commit is contained in:
Matheus Felipe
2021-02-22 19:35:31 -03:00
parent 9c2d09dfcd
commit ed755c1e63
+1 -3
View File
@@ -357,9 +357,7 @@ Instead, use a list comprehension:
.. code-block:: python .. code-block:: python
four_lists = [[] for __ in xrange(4)] four_lists = [[] for __ in range(4)]
Note: Use range() instead of xrange() in Python 3.
Create a string from a list Create a string from a list
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~