You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
8
7
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!
11
11
12
12
```py
13
13
Example
14
14
print(count())
15
15
16
16
//will print on the console { h: 1, e: 1, l: 2, o: 1 }
17
17
```
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