(file_path)
| 17 | |
| 18 | |
| 19 | def lowercase(file_path): |
| 20 | try: |
| 21 | with open(file_path) as F: |
| 22 | word_counter = Counter(F.read()) |
| 23 | |
| 24 | print( |
| 25 | f"The total number of lower case letters are {word_counter.get_total_lower()}" |
| 26 | ) |
| 27 | time.sleep(0.5) |
| 28 | print( |
| 29 | f"The total number of upper case letters are {word_counter.get_total_upper()}" |
| 30 | ) |
| 31 | time.sleep(0.5) |
| 32 | print(f"The total number of letters are {word_counter.get_total()}") |
| 33 | time.sleep(0.5) |
| 34 | |
| 35 | except FileNotFoundError: |
| 36 | print("File is not exist.. Please check AGAIN") |
| 37 | |
| 38 | |
| 39 | if __name__ == "__main__": |
no test coverage detected