- So I'm new with coding and this is a little Python script I made a minute ago and I'm not sure if it's very efficient. 
- I'm not sure I formatted this question correctly anyway here is the script: 
# Counts the number of pairs (in this case every time 
# 1,6, and a period are next to each other)
counting = 0
# The variable for the array I put all the characters of 
# text in.
array = []
# The variable which counts the amount of characters in 
# the text document
arraycounter = 0
# For loop that goes through text document and puts it in 
# my array.
for x in open("/tmp/python_001.py/Info.txt", "r").read():
    array.append(x)
# While loop that goes through the array and if statement 
# that checks if 1, 6, and a period are next to each other
while arraycounter + 2 < len(array):
    if array[arraycounter] == '1' and array[arraycounter + 1] == '6' and 
    array[arraycounter + 2] == '.': 
        counting += 1
    arraycounter += 1
        
# Prints the counting variable
print(counting)
 
     
     
    