python-CSD-kursu/count.in.list.py
2023-05-20 19:05:57 +03:00

8 lines
159 B
Python

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)