1- # ` 16 ` Techno beats:
1+ # ` 16 ` Techno Beats
22
33Estás trabajando con un DJ que necesita un programa que pueda crear ritmos para sus canciones.
44
@@ -7,37 +7,29 @@ Estás trabajando con un DJ que necesita un programa que pueda crear ritmos para
771 . Crea una función ` lyrics_generator ` que reciba una lista. La lista pasada a la función será algo como esto:
88
99``` py
10- [0 ,0 ,1 ,1 ,0 ,0 ,0 ]
10+ [0 ,0 ,1 ,1 ,0 ,0 ,0 ]
1111```
1212
13132 . Por cada ` 0 ` añade el string ` Boom ` .
1414
15- 3 . Por cada ` 1 ` añade el string ` Drop the base ` .
15+ 3 . Por cada ` 1 ` añade el string ` Drop the bass ` .
1616
17- ## ❕ Adicionalmente:
17+ 4 . ** Adicionalmente** , Si encuentras un ` 1 ` tres veces seguidas, también debes añadir el string ` !!!Break the bass!!! `
1818
19- Si encuentras un ` 1 ` tres veces seguidas, tambíen debes añadir el string ` !!!Break the base!!! `
20-
21- ## 💡 Pista:
19+ ## 💡 Pistas:
2220
2321- Recuerda usar variables auxiliares.
2422
25- - Declara una variable para almacenar.
23+ - Declara una variable para almacenar tus strings .
2624
2725- Declara una variable para contar y sumar.
2826
29- ## Resultado esperado:
30-
31- ``` py
32- + Valor devuelto por la función:
33-
34- Un string compuesto por `Boom` o `Drop the base` o `!!! Break the base!!!`
35-
36- + Salida esperada:
27+ ## 💻 Resultado esperado:
3728
38- Boom Boom Drop the base Drop the base Boom Boom Boom
39- Boom Boom Drop the base Drop the base Drop the base !!! Break the base!!! Boom Boom Boom
29+ ``` text
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
4032Boom Boom Boom
41- Drop the base Boom Drop the base
42- 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 !!!
4335```
0 commit comments