Advertisements
Advertisements
प्रश्न
Write the Python statement for the following task using built-in functions/method only:
To display the number of occurrences of the substring "is" in a string named message.
For example if the string message contains "This is his book" , then the output will be 3.
एका वाक्यात उत्तर
Advertisements
उत्तर
The count() function counts the number of occurrences of a substring in a string.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
