File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 11# ` 16 ` Techno Beats
22
3- You are working with a DJ and he needs a program that can create a beats for his songs.
3+ You are working with a DJ, and he needs a program that can create beats for his songs.
44
5- ## 📝Instructions:
5+ ## 📝 Instructions:
66
771 . Create a function called ` lyrics_generator ` that receives a list. The list passed to the function will be something like this:
88
99``` py
10- [0 ,0 ,1 ,1 ,0 ,0 ,0 ]
10+ [0 ,0 ,1 ,1 ,0 ,0 ,0 ]
1111```
1212
13132 . For each Zero you will add to the string ` Boom ` .
1414
15- 3 . For each One you will add to the string ` Drop the base ` .
15+ 3 . For each One you will add to the string ` Drop the bass ` .
1616
17- ## ❕ In addition:
17+ 4 . ** In Addition ** , if you find the number ` 1 ` three times in a row, you should ALSO ADD to the string ` !!!Break the bass!!! `
1818
19- If you find the number ` 1 ` three times in a row, you should ALSO ADD to the string ` !!!Break the base!!! `
20-
21- ## 💡 Hint:
19+ ## 💡 Hints:
2220
2321- Remember to use auxiliary variables.
2422
25- - Declare a variable to store
23+ - Declare a variable to store the string.
2624
27- - Declare a variable to count and sum
25+ - Declare a variable to count and sum.
2826
29- ## Expected result:
27+ ## 💻 Expected result:
3028
3129``` py
32- Boom Boom Drop the base Drop the base Boom Boom Boom
33- Boom Boom Drop the base Drop the base Drop the base !!! Break the base !!! Boom Boom Boom
30+ Boom Boom Drop the bass Drop the bass Boom Boom Boom
31+ Boom Boom Drop the bass Drop the bass Drop the bass !!! Break the bass !!! Boom Boom Boom
3432Boom Boom Boom
35- Drop the base Boom Drop the base
36- Drop the base Drop the base Drop the base !!! Break the base !!!
33+ Drop the bass Boom Drop the bass
34+ Drop the bass Drop the bass Drop the bass !!! Break the bass !!!
3735```
You can’t perform that action at this time.
0 commit comments