diff --git a/breakrot.py b/breakrot.py index adfa6b7..24eef37 100644 --- a/breakrot.py +++ b/breakrot.py @@ -10,10 +10,11 @@ def breakRot(m: str, f: str, x: int): for i in range(1, 26): msg=rot(m, -i) print(f"{i}: {msg}") - for x in t: - if x.upper() in msg.upper(): + for j in t: + if j.upper() in msg.upper(): poss.append(msg) - return Counter(poss) + counter = Counter(poss) + return f"\033[1;32m {counter} \033[3;32m" if __name__ == "__main__": try: diff --git a/rot.py b/rot.py index 56a325d..b254da7 100755 --- a/rot.py +++ b/rot.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3.10 +#!/usr/bin/env python3 from string import ascii_lowercase as lc, ascii_uppercase as uc from sys import argv