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
Count occurrences of a letter in a phrase (case insensitive).
27
+
28
+
:param phrase: The phrase to search within.
29
+
:param letter: The letter to count occurrences of.
30
+
:return: The number of occurrences of the letter in the phrase.
31
+
"""
32
+
```
33
+
34
+
## Guidelines
35
+
36
+
- The function must be **case insensitive**. This means that both the phrase and the letter should be treated as if they are in the same case (upper or lower).
37
+
38
+
- It is **recommended** to avoid using loops to solve this task. Instead, consider utilizing Python's built-in string functions to simplify the solution.
0 commit comments