Skip to content

Commit

Permalink
Fix console prompt syntax in What's New in Python 3.8 (python#124968)
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo authored Oct 4, 2024
1 parent 480354d commit bd393ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/whatsnew/3.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ Other Language Changes
normal assignment syntax::

>>> def parse(family):
lastname, *members = family.split()
return lastname.upper(), *members

... lastname, *members = family.split()
... return lastname.upper(), *members
...
>>> parse('simpsons homer marge bart lisa maggie')
('SIMPSONS', 'homer', 'marge', 'bart', 'lisa', 'maggie')

Expand Down

0 comments on commit bd393ae

Please sign in to comment.