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

Function main

CountMillionCharacters-2.0.py:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def 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
25if __name__ == "__main__":

Callers 1

Calls 1

exitFunction · 0.85

Tested by

no test coverage detected