From 61a0abca8c4b4cde2bcd5a2059db4f0d18e9edec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kon=C4=8Dick=C3=BD?= Date: Tue, 4 May 2021 18:29:50 +0200 Subject: [PATCH] =?UTF-8?q?Kalkula=C4=8Dka=20zn=C3=A1=20magickou=20funkci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kalkulacka.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kalkulacka.py b/kalkulacka.py index 6437d9f..7fbf2a6 100644 --- a/kalkulacka.py +++ b/kalkulacka.py @@ -14,5 +14,7 @@ elif operator == '%': print("Modulo je", a % b) elif operator == '^': print("Mocnina je", a ^ b) +elif operator == 'f': + print("Magická funkce je", a**2 + b**2) else: print("Tento operátor neznám")