#Morgan Baughman
#12/08/17
#find word in dictionary

dictionary = open('engmix.txt')
word = input('Enter an word:')


def wordAsk():
    counter = 0

    for words in dictionary:
        if words.strip() == word:
            print(word, 'is in the dictionary')
            counter += 1
            break
    if counter == 0:
        print(word, 'is not the dictionary')
        
print(wordAsk())


num = int(input('Enter the numbered word you like to look for'))
dictList = []

for word in dictionary:
    dictList.append(word)
    print(dictList[num-1])
    

def exclaimationPoint():
    file = open("longestWord.py")
    for line in file:
        print(line.strip()+"!")
        

def letterSearch():
    letter = input("Enter a letter: ")
    
    letterCount = 0
    word = ""
    for words in dictionary:
        loopCount = words.count(letter)
        if loopCount > letterCount:
            letterCount = loopCount
            word = words
    print("The word with the most", letter+"s is", word)
e9708a5a468fc282f2580a527b9174cfe4b35090
<mask token>


def letterSearch():
    letter = input('Enter a letter: ')
    letterCount = 0
    word = ''
    for words in dictionary:
        loopCount = words.count(letter)
        if loopCount > letterCount:
            letterCount = loopCount
            word = words
    print('The word with the most', letter + 's is', word)

<mask token>


def wordAsk():
    counter = 0
    for words in dictionary:
        if words.strip() == word:
            print(word, 'is in the dictionary')
            counter += 1
            break
    if counter == 0:
        print(word, 'is not the dictionary')


<mask token>


def exclaimationPoint():
    file = open('longestWord.py')
    for line in file:
        print(line.strip() + '!')


def letterSearch():
    letter = input('Enter a letter: ')
    letterCount = 0
    word = ''
    for words in dictionary:
        loopCount = words.count(letter)
        if loopCount > letterCount:
            letterCount = loopCount
            word = words
    print('The word with the most', letter + 's is', word)

<mask token>


def wordAsk():
    counter = 0
    for words in dictionary:
        if words.strip() == word:
            print(word, 'is in the dictionary')
            counter += 1
            break
    if counter == 0:
        print(word, 'is not the dictionary')


print(wordAsk())
<mask token>
for word in dictionary:
    dictList.append(word)
    print(dictList[num - 1])


def exclaimationPoint():
    file = open('longestWord.py')
    for line in file:
        print(line.strip() + '!')


def letterSearch():
    letter = input('Enter a letter: ')
    letterCount = 0
    word = ''
    for words in dictionary:
        loopCount = words.count(letter)
        if loopCount > letterCount:
            letterCount = loopCount
            word = words
    print('The word with the most', letter + 's is', word)

dictionary = open('engmix.txt')
word = input('Enter an word:')


def wordAsk():
    counter = 0
    for words in dictionary:
        if words.strip() == word:
            print(word, 'is in the dictionary')
            counter += 1
            break
    if counter == 0:
        print(word, 'is not the dictionary')


print(wordAsk())
num = int(input('Enter the numbered word you like to look for'))
dictList = []
for word in dictionary:
    dictList.append(word)
    print(dictList[num - 1])


def exclaimationPoint():
    file = open('longestWord.py')
    for line in file:
        print(line.strip() + '!')


def letterSearch():
    letter = input('Enter a letter: ')
    letterCount = 0
    word = ''
    for words in dictionary:
        loopCount = words.count(letter)
        if loopCount > letterCount:
            letterCount = loopCount
            word = words
    print('The word with the most', letter + 's is', word)

#Morgan Baughman
#12/08/17
#find word in dictionary

dictionary = open('engmix.txt')
word = input('Enter an word:')


def wordAsk():
    counter = 0

    for words in dictionary:
        if words.strip() == word:
            print(word, 'is in the dictionary')
            counter += 1
            break
    if counter == 0:
        print(word, 'is not the dictionary')
        
print(wordAsk())


num = int(input('Enter the numbered word you like to look for'))
dictList = []

for word in dictionary:
    dictList.append(word)
    print(dictList[num-1])
    

def exclaimationPoint():
    file = open("longestWord.py")
    for line in file:
        print(line.strip()+"!")
        

def letterSearch():
    letter = input("Enter a letter: ")
    
    letterCount = 0
    word = ""
    for words in dictionary:
        loopCount = words.count(letter)
        if loopCount > letterCount:
            letterCount = loopCount
            word = words
    print("The word with the most", letter+"s is", word)