|
1 | 1 | # `16` Techno Beats
|
2 | 2 |
|
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. |
4 | 4 |
|
5 | | -## 📝Instructions: |
| 5 | +## 📝Instructions: |
6 | 6 |
|
7 | 7 | 1. Create a function called `lyrics_generator` that receives a list. The list passed to the function will be something like this:
|
8 | 8 |
|
9 | 9 | ```py
|
10 | | -[0,0,1,1,0,0,0] |
| 10 | +[0,0,1,1,0,0,0] |
11 | 11 | ```
|
12 | 12 |
|
13 | 13 | 2. For each Zero you will add to the string `Boom`.
|
14 | 14 |
|
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`. |
16 | 16 |
|
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!!!` |
18 | 18 |
|
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: |
22 | 20 |
|
23 | 21 | - Remember to use auxiliary variables.
|
24 | 22 |
|
25 | | -- Declare a variable to store |
| 23 | +- Declare a variable to store the string. |
26 | 24 |
|
27 | | -- Declare a variable to count and sum |
| 25 | +- Declare a variable to count and sum. |
28 | 26 |
|
29 | | -## Expected result: |
| 27 | +## 💻 Expected result: |
30 | 28 |
|
31 | 29 | ```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 |
34 | 32 | Boom 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!!! |
37 | 35 | ```
|
0 commit comments