def listOnOneLine(items): for item in items: print item, listOnOneLine(['apple', 'banana', 'pear']) print 'This may not be what you expected!'