From 35d7d7fdda379179f46e975476930bef6d51d48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A8=D0=B8=D0=BC=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 3 Jul 2025 11:43:04 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20comparison.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comparison.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/comparison.py b/comparison.py index b1a6ea7..cc29bf6 100644 --- a/comparison.py +++ b/comparison.py @@ -3,6 +3,5 @@ def compare(a: str) -> bool: if(a[i].isdigit() == False): if a[i] == "<": return int(a[:i]) < int(a[i + 1:]) - else: - return int(a[:i]) > int(a[i + 1:]) - \ No newline at end of file + elif (a[i] == ">"): + return int(a[:i]) > int(a[i + 1:]) \ No newline at end of file