[docs] Python Tutorial,Release 3.6.0 / glitch

M. E. Holzé m.holze at kabelmail.de
Sun Feb 26 17:03:17 EST 2017


Hello,


just a glitch I guess,


page 49, example :


>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678}
>>> for name, phone in table.items():
....
print('{0:10} ==> {1:10d}'.format(name, phone))
....
Jack ==> 4098
Dcab ==> 7678
Sjoerd ==> 4127

should read:

Dcab ==> 7678

Jack ==> 4098

Sjoerd ==> 4127


shouldn't it ?

(Youvn't used  FORTH  swap   before to manipulate the stack, have you?)



jm2¢


Matthias E. Holzé





More information about the docs mailing list