()
| 9 | |
| 10 | |
| 11 | def main(): |
| 12 | file_input = input("File Name: ") |
| 13 | try: |
| 14 | with open(file_input, "r") as info: |
| 15 | count = collections.Counter(info.read().upper()) |
| 16 | except FileNotFoundError: |
| 17 | print("Please enter a valid file name.") |
| 18 | main() |
| 19 | |
| 20 | value = pprint.pformat(count) |
| 21 | print(value) |
| 22 | exit() |
| 23 | |
| 24 | |
| 25 | if __name__ == "__main__": |
no test coverage detected