Question: STUDENT SECTION # ## # ############################################################ # generate _ rhyming _ line ( ) # Complete this function so that it returns a list. The
STUDENT SECTION #
## #
############################################################
# generaterhymingline
# Complete this function so that it returns a list. The list
# must contain two strings of words each. Each string
# corresponds to a line. The two lines you return must rhyme.
def generaterhyminglines:
return
# generatesyllablelines
# Complete this function so that it returns a list. The list
# must contain two strings of syllables each. Each string
# corresponds to a line and each line must be composed of words
# whose number of syllables add up to syllables total.
def generatesyllablelines:
return
# generatemeteredline
# Complete this function so that it returns a string. This string
# will be composed of randonly selected words, will contain
# syllables, and the rhythm of the line must match the following
# pattern of stresses:
def generatemeteredline:
return
# generateline
# Use this function to generate each line of your poem.
# This is where you will implement the rules that govern
# the construction of each line.
# For example:
# number of words or syllables in line
# stress pattern for line meter
# last word choice constrained by rhyming pattern
# Add any parameters to this function you need to bring in
# information about how a particular line should be constructed.
def generateline:
return
# generatepoem
# Use this function to construct your poem, line by line.
# This is where you will implement the rules that govern
# the structure of your poem.
# For example:
# The total number of lines
# How the lines relate to each other rhyming syllable counts, etc
def generatepoem:
return
if namemain:
## test
## print
## result generaterhyminglines
## printRHYMING LINES:"
## printresult
## print
##
## result generatesyllablelines
## print SYLllABLE LINES:"
## printresult
## print
##
## result generatemeteredline
## printMETERED LINE:"
## printresult
## print
##
## mypoem generatepoem
## printA POEM:"
## printmypoem
print
If this is all you see, try uncomm
## #
############################################################
# generaterhymingline
# Complete this function so that it returns a list. The list
# must contain two strings of words each. Each string
# corresponds to a line. The two lines you return must rhyme.
def generaterhyminglines:
return
# generatesyllablelines
# Complete this function so that it returns a list. The list
# must contain two strings of syllables each. Each string
# corresponds to a line and each line must be composed of words
# whose number of syllables add up to syllables total.
def generatesyllablelines:
return
# generatemeteredline
# Complete this function so that it returns a string. This string
# will be composed of randonly selected words, will contain
# syllables, and the rhythm of the line must match the following
# pattern of stresses:
def generatemeteredline:
return
# generateline
# Use this function to generate each line of your poem.
# This is where you will implement the rules that govern
# the construction of each line.
# For example:
# number of words or syllables in line
# stress pattern for line meter
# last word choice constrained by rhyming pattern
# Add any parameters to this function you need to bring in
# information about how a particular line should be constructed.
def generateline:
return
# generatepoem
# Use this function to construct your poem, line by line.
# This is where you will implement the rules that govern
# the structure of your poem.
# For example:
# The total number of lines
# How the lines relate to each other rhyming syllable counts, etc
def generatepoem:
return
if namemain:
## test
## print
## result generaterhyminglines
## printRHYMING LINES:"
## printresult
## print
##
## result generatesyllablelines
## print SYLllABLE LINES:"
## printresult
## print
##
## result generatemeteredline
## printMETERED LINE:"
## printresult
## print
##
## mypoem generatepoem
## printA POEM:"
## printmypoem
print
If this is all you see, try uncomm
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
