test
This commit is contained in:
13
task_31.py
Normal file
13
task_31.py
Normal 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}")
|
||||
Reference in New Issue
Block a user