Задача Задача №3135864
А
А
def find_second_c(string):
first_c = string.find('c')
if first_c == -1:
print("В строке нет букв 'c'")
elif string.count('c') == 1:
print("В строке только одна буква 'c'")
else:
second_c = string.find('c', first_c + 1)
print(string[:second_c])
# Пример использования
input_string = "This is a test string with multiple c characters"
find_second_c(input_string)