homework_05/19_teodor_dishanski/decrypt.py
def find_possible_keys(word):
    """Look for possible keys for every single word."""
    possible_keys = set()

    for i in range(1, 26):
        correct_word = ''

        for char in word:
            condition_upper = (65 <= ord(char) <= 90)
            condition_lower = (97 <= ord(char) <= 122)

            if condition_upper or condition_lower:
                correct_word += decrypt_single_char(char, i)

        if wordnet.synsets(correct_word):
            possible_keys.add(i)

    return possible_keys
Look for possible keys for every single word.
Look for possible keys for every single word.
Look for possible keys for every single word .
def find_possible_keys(word):
    possible_keys = set()
    for i in range(1, 26):
        correct_word = ''
        for char in word:
            condition_upper = (65 <= ord(char) <= 90)
            condition_lower = (97 <= ord(char) <= 122)
            if condition_upper or condition_lower:
                correct_word += decrypt_single_char(char, i)
        if wordnet.synsets(correct_word):
            possible_keys.add(i)
    return possible_keys
def find_possible_keys ( word ) : possible_keys = set ( ) for i in range ( 1 , 26 ) : correct_word = '' for char in word : condition_upper = ( 65 <= ord ( char ) <= 90 ) condition_lower = ( 97 <= ord ( char ) <= 122 ) if condition_upper or condition_lower : correct_word += decrypt_single_char ( char , i ) if wordnet . synsets ( correct_word ) : possible_keys . add ( i ) return possible_keys
Look for possible keys for every single word.
Look for possible keys for every single word .
"""Look for possible keys for every single word."""
word