mirror of https://github.com/python/cpython
Fix console prompt syntax in What's New in Python 3.8 (#124968)
This commit is contained in:
parent
480354dc23
commit
bd393aedb8
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue