bred

Generation

generate functionTue, 17 Jan 2023

This function will take in a sentence and generate new lines after it so that it becomes a finished poem.

def poem_title_card(poet, title): return print(poet + '\n' + title + '\n\n') def poem_description(publish_date, author, title, original_work): poem_desc = print('The poem {title} was published in {publish_date} by {author}. The original work was found at {original_work}.') return poem_desc def poem_body(body_text): return print(body_text + '\n')

Questions about programming?Chat with your personal AI assistant