Skip to content

Commit da3f6d8

Browse files
authored
Merge pull request 4GeeksAcademy#11 from ColbyWTaylor/patch-8
update exercise instructions
2 parents c4bae03 + 009d533 commit da3f6d8

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
# `02.6` Letter counter
22

3-
```py
4-
Letter Counter
5-
Our customer needs a program that counts the letters repetitions in a given string,
6-
I know that's weird, but they are very adamant, We need this asap!
7-
```
3+
# 📝Instructions
4+
5+
Completely real definitely not-made-up background: Our customer needs a program that counts the letters repetitions in a given string,
6+
I know sounds weird, but they are very adamant and need this asap!
87

9-
# 📝Instructions:
10-
1. letters and the values are the number of times it is repeated throughout the string.
8+
1. Count the letters in the string used in "par" and print the number of times it is repeated throughout the string.
9+
2. Capitalization should not affect the count (ie if there is a string that contains a capital "A" as well as a lowercase "a" the count for a should be 2).
10+
3. Spaces should be ignored!
1111

1212
```py
1313
Example
1414
print(count())
1515

1616
//will print on the console { h: 1, e: 1, l: 2, o: 1 }
1717
```
18-
💡Hints:
19-
Ignore white spaces in the string.
20-
you should lower case all letters to have an accurate count of all letters regardless of casing of the letter.

0 commit comments

Comments
 (0)