Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit abf5735

Browse files
Update README.md
1 parent 356e57e commit abf5735

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

‎exercises/16-Techno_beat/README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
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

77
1. 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

1313
2. 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
3432
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!!!
3735
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /