This commit is contained in:
Bucchino Geoffrey 2022-07-05 21:36:40 +02:00
parent 1baeb59a85
commit bce3c1b652

@ -26,6 +26,8 @@ def readFile(filename):
def getLetters(text, pos):
# return Counter(text[idx : idx + pos] for idx in range(len(text) - 1))
###### TODO
# Sorted by value and to get x data from the dictionary
return Counter([text[idx: idx + pos] for idx in range(len(text) - 1)])
if __name__ == "__main__":