Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110)

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit c5d18a5014)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-12-16 03:00:58 -08:00 committed by GitHub
parent c8044777cf
commit fb5d314da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -797,7 +797,7 @@ using the :func:`next` built-in function; this example shows how it all works::
>>> s = 'abc'
>>> it = iter(s)
>>> it
<iterator object at 0x00A1DB50>
<str_iterator object at 0x10c90e650>
>>> next(it)
'a'
>>> next(it)