Question: lyrics = [ I wanna be your endgame, I wanna be your first string, I wanna be your A - Team, I wanna be
lyrics I wanna be your endgame", "I wanna be your first string",
"I wanna be your ATeam", "I wanna be your endgame, endgame"
linesofsanity
#You may modify the lines of code above, but don't move them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
#Recall the Earworm problem Coding Exercise The
#first time, you would still finish printing the entire list
#of lyrics after linesofsanity was exceeded.
#
#Revise that code so that you always stop when linesofsanity
#is reached. If linesofsanity is you would print lines,
#no matter how many lines are in the list. If there are fewer
#than lines in the list, then you'd repeat the list until
#the number of lines is reached.
#
#For example, with the values above, you'd print:
#I wanna be your endgame
#I wanna be your first string
#I wanna be your ATeam
#I wanna be your endgame, endgame
#I wanna be your endgame
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
