diff --git a/README.rst b/README.rst index 33f42e07..25c15d03 100644 --- a/README.rst +++ b/README.rst @@ -84,8 +84,9 @@ Wrap ``tqdm()`` around any iterable: .. code:: python + text = "" for char in tqdm(["a", "b", "c", "d"]): - print char + text = text + char ``trange(i)`` is a special optimised instance of ``tqdm(range(i))``: