comparison docs/pycon2010/pirate8.py @ 352:798c7f32a960

line spacing
author catherine@Drou
date Tue, 16 Feb 2010 23:08:17 -0500
parents 8a5bc9f5c28e
children d275d3beceff
comparison
equal deleted inserted replaced
351:8a5bc9f5c28e 352:798c7f32a960
43 chant = ['yo'] + ['ho'] * opts.ho 43 chant = ['yo'] + ['ho'] * opts.ho
44 if opts.commas: 44 if opts.commas:
45 separator = ', ' 45 separator = ', '
46 else: 46 else:
47 separator = ' ' 47 separator = ' '
48 print('{0} and a bottle of {1}'.format(separator.join(chant), arg)) 48 chant = separator.join(chant)
49 print('{0} and a bottle of {1}'.format(chant, arg))
49 50
50 pirate = Pirate() 51 pirate = Pirate()
51 pirate.cmdloop() 52 pirate.cmdloop()