Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3.24 Lab: Song Writer Your task is to write several functions that print the lyrics of one of the best songs of all time to

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
3.24 Lab: Song Writer Your task is to write several functions that print the lyrics of one of the best songs of all time to standard outout Rock-holl songs typically follow a verse-chorus form where the verse is unique, but the chorus is repeated verbatim instead of writing the chorus text over and over we will use a function. We will define the main function stub for you your task is to write the body of the main function and the remaining 4 functions to implement the following song structure verset chorus verse 2 chorus verse 3 Chorus We defined the lyrics strings for you. Print a newline between sections so it is easier to differentiate betweenverses and the chorus VY3241: Lob: Song Writer main.py 1 verse lyrics i n care waiting for the vas to come 2 Corporation tee-shirt, stupid bloody Tuesday let your farge verstyrics - ister City, policeman sitting 5 Pretty Little Licenenin See how they ty like Lucy in the sky. See how they run verse lyrics - Site n gtis garden waiting for the sun If the sun don't come, you get to 11 chorus Lyrics - the n , they are the your program presse Submit for grading When done develop to t h e Develop mode Submit mode main.py 12 I am the walrus, goo goo g'10 call versei function call chorus function call verse2 function verse20) call chorus function print verselies wide printiversel_lyrics," ") define verse2 function Develop mode Submit mode When done developing your program, press the Submit for grading button below. This wil submit your program for auto-grading Submit for grading 4:06 minutes until next submission is allowed Latest submission - 5:35 PM on 02/14/20 Total score: 0/5 Only show failing tests Download this submission 1. Compare output A Output differs. See highlights below. Special character legend Your output Pille "main.py", line 15 call jersel function Syn o r in yntax sitting ACTIVITY 324 1:Lab Song Writer main.py print versel lyrics and a new line printiversel_lyrics," ") 31 define versed function def verse print verse lyrics and time printiverse lyrics, 15 in function 35 oef verse : 4 det chorus) norint chorus lyrics and print(chorus, lyrics) now line 45 wall in function Develop mode Submit mode When done developing your program press the Submit for grading button below. This will submit your program for auto-grading 3.55 minutes next b o wed Latest submission - 5:35 PM on 02/14/20 Total score: 0/5 Only show failing tests Download this submission 1. Compare Output A 0/5 Output differs. See highlights below Pille Sain pyt. line 15 Your output snatrror invalid syntax sitting WER Trullillo Only show failing tests Download this submission 1: Compare output 0/5 Output differs. See highlights below. Special character legend File "main.py", line 15 call yersel function Your output Synagror invalid Syntax sitting on a cornflake, waiting for the van to co Corporation tee-shirt, stupid bloody Tuesday Man you've been a naughty boy. you let your face grow long I am the egg man, they are the egg men I am the walrus, goo goo gojoober Mister city, policeman sittinge Pretty little policomon in a rown how they fly like Lucy in the Sky, see how they run I crying, t rying Expected output am the egg man, they are the egg nenes the walrus, goo goo goob Sitting in an English garden waiting for the sun If the sun don't come, you get a tan Brom standing in the English kaina am the egg man, they are the egg mere am the valrun, goo goo gojoob Previous submissions 5:29 PM on 2/14/20 0/5 View La "M" MOOC 3.24 Lab: Song Writer Your task is to write several functions that print the lyrics of one of the best songs of all time to standard outout Rock-holl songs typically follow a verse-chorus form where the verse is unique, but the chorus is repeated verbatim instead of writing the chorus text over and over we will use a function. We will define the main function stub for you your task is to write the body of the main function and the remaining 4 functions to implement the following song structure verset chorus verse 2 chorus verse 3 Chorus We defined the lyrics strings for you. Print a newline between sections so it is easier to differentiate betweenverses and the chorus VY3241: Lob: Song Writer main.py 1 verse lyrics i n care waiting for the vas to come 2 Corporation tee-shirt, stupid bloody Tuesday let your farge verstyrics - ister City, policeman sitting 5 Pretty Little Licenenin See how they ty like Lucy in the sky. See how they run verse lyrics - Site n gtis garden waiting for the sun If the sun don't come, you get to 11 chorus Lyrics - the n , they are the your program presse Submit for grading When done develop to t h e Develop mode Submit mode main.py 12 I am the walrus, goo goo g'10 call versei function call chorus function call verse2 function verse20) call chorus function print verselies wide printiversel_lyrics," ") define verse2 function Develop mode Submit mode When done developing your program, press the Submit for grading button below. This wil submit your program for auto-grading Submit for grading 4:06 minutes until next submission is allowed Latest submission - 5:35 PM on 02/14/20 Total score: 0/5 Only show failing tests Download this submission 1. Compare output A Output differs. See highlights below. Special character legend Your output Pille "main.py", line 15 call jersel function Syn o r in yntax sitting ACTIVITY 324 1:Lab Song Writer main.py print versel lyrics and a new line printiversel_lyrics," ") 31 define versed function def verse print verse lyrics and time printiverse lyrics, 15 in function 35 oef verse : 4 det chorus) norint chorus lyrics and print(chorus, lyrics) now line 45 wall in function Develop mode Submit mode When done developing your program press the Submit for grading button below. This will submit your program for auto-grading 3.55 minutes next b o wed Latest submission - 5:35 PM on 02/14/20 Total score: 0/5 Only show failing tests Download this submission 1. Compare Output A 0/5 Output differs. See highlights below Pille Sain pyt. line 15 Your output snatrror invalid syntax sitting WER Trullillo Only show failing tests Download this submission 1: Compare output 0/5 Output differs. See highlights below. Special character legend File "main.py", line 15 call yersel function Your output Synagror invalid Syntax sitting on a cornflake, waiting for the van to co Corporation tee-shirt, stupid bloody Tuesday Man you've been a naughty boy. you let your face grow long I am the egg man, they are the egg men I am the walrus, goo goo gojoober Mister city, policeman sittinge Pretty little policomon in a rown how they fly like Lucy in the Sky, see how they run I crying, t rying Expected output am the egg man, they are the egg nenes the walrus, goo goo goob Sitting in an English garden waiting for the sun If the sun don't come, you get a tan Brom standing in the English kaina am the egg man, they are the egg mere am the valrun, goo goo gojoob Previous submissions 5:29 PM on 2/14/20 0/5 View La "M" MOOC

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

Students also viewed these Databases questions