You are working with a DJ and he needs a program that can create a beats for his songs.
- Create a function called
lyrics_generator
that receives a list. The list passed to the function will be something like this:
[0,0,1,1,0,0,0]
-
For each Zero you will add to the string
Boom
. -
For each One you will add to the string
Drop the base
.
If you find the number 1
three times in a row, you should ALSO ADD to the string !!!Break the base!!!
-
Remember to use auxiliary variables.
-
Declare a variable to store
-
Declare a variable to count and sum
Boom Boom Drop the base Drop the base Boom Boom Boom
Boom Boom Drop the base Drop the base Drop the base !!!Break the base!!! Boom Boom Boom
Boom Boom Boom
Drop the base Boom Drop the base
Drop the base Drop the base Drop the base !!!Break the base!!!