#juliagolder
#5/21/18
#quiz6.py

#program1
file = open('engmix.txt')

letter = input('What letter would you like to search for?')

for line in file:
    word = line.strip()
    number = word.count(letter)
    if number == 4:
        print(word)

#program2
file = open('engmix.txt')

letter = 't'

for line in file:
    line = line.strip()
    if line[0] == letter and line[4] == letter and line[8] == letter:
        print(line)


#program3
file = open('engmix.txt')

letter = input('What letter would you like to search for?')
number = int(input('How long do you want your word to be?'))

for line in file:
    if len(line) == number and line[0]==letter:
        print(line)


#program4
file = open('engmix.txt')

number = 8000

L = []

for line in file:
    if len(line) == 10
        print(L)
