Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
254 B
1
Indexable
Never
s = input('Введите строку: ')
def symbols(s):
    s1 = set(s)
    ans = []
    for symb in s1:
        if 2 < s.count(symb) < 7:
            ans.append(symb)
    return ans
print('Множество символов:', *symbols(s))