From 56390e00ef13b7de9d1f37e3128ff4f5693fc190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A1hodn=C3=A1=20Ko=C4=8Dka?= Date: Tue, 4 May 2021 17:46:10 +0200 Subject: [PATCH] =?UTF-8?q?Pt=C3=A1me=20se=20na=20=C4=8D=C3=ADslo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hello.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hello.py b/hello.py index 381f4b3..92106f9 100644 --- a/hello.py +++ b/hello.py @@ -6,3 +6,9 @@ print("Teď je", now) jmeno = input("Jak se jmenuješ?") print("Zdravím i Tebe,", jmeno) + +cislo = int(input("Hádej číslo!") +if cislo == 42: + print("Jak jsi to věděl???") +else: + print("To není ono.")