def breakfast():
 import random
 items = 'egg,bacon,sausage,baked beans,tomato'.split(',')
 random.shuffle(items)
 breakfast = items[:random.randint(0, len(items))]
 breakfast += (['spam'] * random.randint(0, (len(breakfast) + 1)))
 random.shuffle(breakfast)
 if (len(breakfast) == 0):
  breakfast = ['lobster thermidor aux crevettes']
 log.warn('Breakfast is served:')
 log.warn('%s and spam', ', '.join(breakfast))

def breakfast ( ) : import random items = 'egg,bacon,sausage,baked beans,tomato' . split ( ',' ) random . shuffle ( items ) breakfast = items [ : random . randint ( 0 , len ( items ) ) ] breakfast += ( [ 'spam' ] * random . randint ( 0 , ( len ( breakfast ) + 1 ) ) ) random . shuffle ( breakfast ) if ( len ( breakfast ) == 0 ) : breakfast = [ 'lobster thermidor aux crevettes' ] log . warn ( 'Breakfast is served:' ) log . warn ( '%s and spam' , ', ' . join ( breakfast ) )
serves a pythonic breakfast .