()
| 5 | |
| 6 | |
| 7 | def 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 | |
| 20 | if __name__ == "__main__": |
no test coverage detected