Files
python-by-example-150-chall…/challenges88-95/challenge-091.py

12 lines
383 B
Python
Raw Normal View History

2019-07-25 16:39:25 +03:00
import array as arr
store_array = arr.array('i', [])
for i in range(4):
store_number = int(input('Enter number to add to array : '))
store_array.append(store_number)
repeat_number = store_array[1]
store_array.append(repeat_number)
print(store_array)
check_number = int(input('Enter number from array to see how many it repeated! : '))
print(store_array.count(check_number))