Rozwiązanie zadania "CRC" #24

Closed
s426211 wants to merge 8 commits from (deleted):zad3 into master
Showing only changes of commit 0ab06c574f - Show all commits

14
main.py
View File

@ -69,5 +69,17 @@ def decode(n):
if __name__ == "__main__": if __name__ == "__main__":
print() choice = ""
while choice != "3":
choice = input("1. Utwórz FCS\n2. Sprawdź FCS\n3. Wyjdź\n")
if choice == "1":
inp = input("Wprowadź wiadomość:\n")
print(encode(inp))
elif choice == "2":
inp = input("Wprowadź wiadomość z ramką:\n")
print(decode(inp))