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')