Small cosmetical changes

This commit is contained in:
Mikołaj Lubiak 2023-02-07 14:54:30 +01:00
parent 2e2cad4ea4
commit daa11deb0e
2 changed files with 5 additions and 4 deletions

View File

@ -10,10 +10,11 @@ def breakRot(m: str, f: str, x: int):
for i in range(1, 26): for i in range(1, 26):
msg=rot(m, -i) msg=rot(m, -i)
print(f"{i}: {msg}") print(f"{i}: {msg}")
for x in t: for j in t:
if x.upper() in msg.upper(): if j.upper() in msg.upper():
poss.append(msg) poss.append(msg)
return Counter(poss) counter = Counter(poss)
return f"\033[1;32m {counter} \033[3;32m"
if __name__ == "__main__": if __name__ == "__main__":
try: try:

2
rot.py
View File

@ -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 string import ascii_lowercase as lc, ascii_uppercase as uc
from sys import argv from sys import argv