From e7beb5630d2067db4a14954e2fc7610d1894535e Mon Sep 17 00:00:00 2001 From: macelik <41537897+macelik@users.noreply.github.com> Date: Sun, 10 Oct 2021 14:01:22 +0300 Subject: [PATCH] Update teaching.py --- codes/teaching.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/codes/teaching.py b/codes/teaching.py index f4b42dd..23cfe0c 100644 --- a/codes/teaching.py +++ b/codes/teaching.py @@ -1,9 +1,11 @@ +#convert string to the int + buyukler=[] kucukler=[] for j in mylist: - if j > 10: + if int(j) > 10: buyukler.append(j) - elif j < 10: + elif int(j) < 10: kucukler.append(j) - elif j == 100: - print('equals to 100') \ No newline at end of file + elif int(j) == 100: + print('equals to 100')