MCPcopy Create free account
hub / github.com/geekcomputers/Python / lowercase

Function lowercase

file_handle/File handle text/question 6.py:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def lowercase():
8 with open("happy.txt") as F:
9 word_counter = Counter(F.read())
10
11 print(
12 f"The total number of lower case letters are {word_counter.get_total_lower()}"
13 )
14 print(
15 f"The total number of upper case letters are {word_counter.get_total_upper()}"
16 )
17 print(f"The total number of letters are {word_counter.get_total()}")
18
19
20if __name__ == "__main__":

Callers 1

question 6.pyFile · 0.70

Calls 4

get_total_lowerMethod · 0.95
get_total_upperMethod · 0.95
get_totalMethod · 0.95
CounterClass · 0.90

Tested by

no test coverage detected