Python policz, ile razy postać pojawia się w ciągu

str = "Hello world".lower()

result = str.count('world')
print(result)
#the ouput will be 1 because in the variable "str" the letter "world" appers only one time :)
Mysterious Mink