Research + Counting Repeats
Read in a text file called repeat.txt, consisting integer numbers. Convert the text numbers into INTEGER and store them into a LIST. Max number of numbers in the file is 25, one number per line.
Input file examples;122344555
A repeat in an array/LIST is a series of 2 or more adjacent elements of the same value. Return the number of repeats in the given array. (Close the file)
Sample output. Several possibilities are peresented
Counting repeats
================[1, 2, 2, 1, 1] = 2
Counting repeats
================[1, 1, 2, 1, 1] = 2
Counting repeats
================[1, 1, 1, 1, 1] = 1
Comments must be done for all the things.