This commit is contained in:
2025-12-11 18:01:56 +05:00
commit bfa7413f9c
38 changed files with 651 additions and 0 deletions

13
task_31.py Normal file
View File

@@ -0,0 +1,13 @@
sentence = input("Введите предложение: ")
letter = input("Введите букву для удаления: ")
words = sentence.split()
filtered_words = []
for word in words:
if letter.lower() not in word.lower():
filtered_words.append(word)
result = " ".join(filtered_words)
print(f"Результат: {result}")