https://remp3indir.net/implementing-1d-array-python-problem/
implementing 1d array python problem