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::
|
normal assignment syntax::
|
||||||
|
|
||||||
>>> def parse(family):
|
>>> def parse(family):
|
||||||
lastname, *members = family.split()
|
... lastname, *members = family.split()
|
||||||
return lastname.upper(), *members
|
... return lastname.upper(), *members
|
||||||
|
...
|
||||||
>>> parse('simpsons homer marge bart lisa maggie')
|
>>> parse('simpsons homer marge bart lisa maggie')
|
||||||
('SIMPSONS', 'homer', 'marge', 'bart', 'lisa', 'maggie')
|
('SIMPSONS', 'homer', 'marge', 'bart', 'lisa', 'maggie')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue