From 564e72c0f0e5d90cbdd6f5ae1ec7ce7e3825baae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=93=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=B4=D0=B5=D0=B2?= Date: Fri, 21 Nov 2025 13:26:11 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comparison.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 comparison.py diff --git a/comparison.py b/comparison.py new file mode 100644 index 0000000..4125ffa --- /dev/null +++ b/comparison.py @@ -0,0 +1,7 @@ +def compare(a: str) -> bool: + if ">" in a: + left, right = a.split(">", 1) + return int(left) > int(right) + elif "<" in a: + left, right = a.split("<", 1) + return int(left) < int(right) \ No newline at end of file