Question: STUDENT SECTION # ## # ############################################################ # generate _ rhyming _ line ( ) # Complete this function so that it returns a list. The

STUDENT SECTION #
## #
############################################################
# generate_rhyming_line()
# Complete this function so that it returns a list. The list
# must contain two strings of 5 words each. Each string
# corresponds to a line. The two lines you return must rhyme.
def generate_rhyming_lines():
return -1
# generate_10_syllable_lines()
# Complete this function so that it returns a list. The list
# must contain two strings of 10 syllables each. Each string
# corresponds to a line and each line must be composed of words
# whose number of syllables add up to 10 syllables total.
def generate_10_syllable_lines():
return -1
# generate_metered_line()
# Complete this function so that it returns a string. This string
# will be composed of randonly selected words, will contain 10
# syllables, and the rhythm of the line must match the following
# pattern of stresses: 0101010101
def generate_metered_line():
return -1
# generate_line()
# 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 generate_line():
return -1
# generate_poem()
# 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 generate_poem():
return -1
if __name__=="__main__":
## test()
## print()
## result1= generate_rhyming_lines()
## print("RHYMING LINES:")
## print(result1)
## print()
##
## result2= generate_10_syllable_lines()
## print("10 SYLllABLE LINES:")
## print(result2)
## print()
##
## result3= generate_metered_line()
## print("METERED LINE:")
## print(result3)
## print()
##
## my_poem = generate_poem()
## print("A POEM:")
## print(my_poem)
print("
If this is all you see, try uncomm
## #
############################################################
# generate_rhyming_line()
# Complete this function so that it returns a list. The list
# must contain two strings of 5 words each. Each string
# corresponds to a line. The two lines you return must rhyme.
def generate_rhyming_lines():
return -1
# generate_10_syllable_lines()
# Complete this function so that it returns a list. The list
# must contain two strings of 10 syllables each. Each string
# corresponds to a line and each line must be composed of words
# whose number of syllables add up to 10 syllables total.
def generate_10_syllable_lines():
return -1
# generate_metered_line()
# Complete this function so that it returns a string. This string
# will be composed of randonly selected words, will contain 10
# syllables, and the rhythm of the line must match the following
# pattern of stresses: 0101010101
def generate_metered_line():
return -1
# generate_line()
# 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 generate_line():
return -1
# generate_poem()
# 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 generate_poem():
return -1
if __name__=="__main__":
## test()
## print()
## result1= generate_rhyming_lines()
## print("RHYMING LINES:")
## print(result1)
## print()
##
## result2= generate_10_syllable_lines()
## print("10 SYLllABLE LINES:")
## print(result2)
## print()
##
## result3= generate_metered_line()
## print("METERED LINE:")
## print(result3)
## print()
##
## my_poem = generate_poem()
## print("A POEM:")
## print(my_poem)
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!