Я хочу найти время появления «is» в строке. но после запуска кода Python программа находит каждое слово, имеющее «есть», например, находит «это».
string = input('Input your own text : ')
value = input('Input a value that you want counting : ')
x = string.count(value)
print(f'the value that you entered appeared {x} time/times ')
Подробнее здесь: https://stackoverflow.com/questions/798 ... ers-in-ano
Мобильная версия