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 :)
string.count('a')