From 2f4528f60e6f09b5dcd0cacd4370ce78062a882b Mon Sep 17 00:00:00 2001 From: dr_domi Date: Sat, 2 May 2026 16:29:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend.py b/backend.py index 1d07fba..38940b7 100644 --- a/backend.py +++ b/backend.py @@ -2,3 +2,7 @@ def calculate(height, wight): result = wight / height ^ 2 return result +def user_input_check(height, wight): + if height.isdigit() and wight.isdigit(): + if height != 0 and wight != 0: + return True