From 0ab06c574fc87ffe432665d86dbd604f77ed2139 Mon Sep 17 00:00:00 2001 From: Varmen8 Date: Fri, 15 Jun 2018 16:50:33 +0200 Subject: [PATCH] Add user input --- main.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8a05ce0..7ea562a 100644 --- a/main.py +++ b/main.py @@ -69,5 +69,17 @@ def decode(n): 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)) +