""" Author: Consulted: Date: Spring 2022 Purpose: Lab03, Fruitful String Functions Filename: poem.py """ import random def firstLine(): '''Returns a 5-syllable string for the first line of a haiku ''' base = 'you say you like ' noun = random.choice(['me', 'them']) return base + noun def poem(): '''Returns a string haiku -- three lines with 5, 7, and 5 syllables, respectively. ''' newline = '\n' return ( firstLine() + newline + firstLine() + newline + firstLine() + newline )