From e2f246258467d71374e4b75925fdb3f8ea8aaa21 Mon Sep 17 00:00:00 2001 From: zaiddx <72139621+zaiddx@users.noreply.github.com> Date: Thu, 1 Oct 2020 11:55:31 +0530 Subject: [PATCH] Update greater.py making program strong to counter wrong input --- greater.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/greater.py b/greater.py index 246f50e..f7c118f 100644 --- a/greater.py +++ b/greater.py @@ -1,8 +1,10 @@ a = int(input()) b = int(input()) -if b > a: +if b>a: print("b is greater than a") elif a>b: print("a is greater than b") -else: +elif a==b: print("Both are equal") +else: + print("Wrong input")