Mercurial > python-cmd2
diff docs/pycon2010/pirate8.py @ 352:798c7f32a960
line spacing
author | catherine@Drou |
---|---|
date | Tue, 16 Feb 2010 23:08:17 -0500 |
parents | 8a5bc9f5c28e |
children | d275d3beceff |
line wrap: on
line diff
--- a/docs/pycon2010/pirate8.py Tue Feb 16 23:07:04 2010 -0500 +++ b/docs/pycon2010/pirate8.py Tue Feb 16 23:08:17 2010 -0500 @@ -45,7 +45,8 @@ separator = ', ' else: separator = ' ' - print('{0} and a bottle of {1}'.format(separator.join(chant), arg)) + chant = separator.join(chant) + print('{0} and a bottle of {1}'.format(chant, arg)) pirate = Pirate() pirate.cmdloop() \ No newline at end of file