Задача Задача №18981
А
А
Sure! Here is an example solution in Python:
sentence = input("Введите предложение: ")
if sentence[0].islower():
print("Есть ошибки: начинается с маленькой буквы")
elif sentence[-1] != '.':
print("Есть ошибки: в конце предложения не стоит точка")
elif ",," in sentence:
print("Есть ошибки: два пробела подряд")
elif "," in sentence and ", " not in sentence:
print("Есть ошибки: после запятой не стоит пробел")
else:
print("Всё верно")
You can test the solution with various input sentences and see if it correctly identifies any errors based on the given criteria.
