diff --git a/count.in.list.py b/count.in.list.py new file mode 100644 index 0000000..f838a22 --- /dev/null +++ b/count.in.list.py @@ -0,0 +1,8 @@ +a = [1, 2, 2, 3, 4, 5, 2, 1, 2, 3, 1, 2] +val = int(input('Aranacak değeri giriniz:')) + +count = 0 +for i in a: + if i == val: + count += 1 +print(count)