Import re(где ошибка, помогите, пожалуйста) with open('input.txt', 'r') as inp:
words = re.sub(r'(?i)[^a-z]', ' ', inp.read()).split()
a = input("Введите букву: ").lower()
with open('output.txt', 'w') as f:
for word in words:
if a in word:
f.write(word + '\n')
Ответ не выходит в файл, помогите, пожалуйста)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.