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

Function main

CountMillionCharacters-Variations/variation1.py:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def main():
19 is_exist = True
20 # Try to open file if exist else raise exception and try again
21 while is_exist:
22 try:
23 inputFile = input("File Name / (0)exit : ").strip()
24 if inputFile == "0":
25 break
26 print(count_chars(inputFile))
27 except FileNotFoundError:
28 print("File not found...Try again!")
29
30
31if __name__ == "__main__":

Callers 1

variation1.pyFile · 0.70

Calls 1

count_charsFunction · 0.85

Tested by

no test coverage detected