Fix console prompt syntax in What's New in Python 3.8 (#124968)

This commit is contained in:
Nice Zombies 2024-10-04 13:33:54 +02:00 committed by GitHub
parent 480354dc23
commit bd393aedb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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')