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>
This commit is contained in:
Vivek Vashist 2021-12-16 21:10:12 +10:30 committed by GitHub
parent a951c95a13
commit c5d18a5014
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)