Write a Python Program to Count Occurrences of a Substring in a String [Using Inbuilt str.count()]

preview_player
Показать описание
Hi Guys, Welcome to my channel.

In this video you will learn about how to Write a Python Program to Count Occurrences of a Substring in a String

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

Code
=============================
my_string = input("Enter a String : ")
my_substring = input("Enter a Substring : ")

print("Substring occurs %d times " % my_count)

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Рекомендации по теме
Комментарии
Автор

The title would suggest this is an algorithmic / first-principles video, but you're using in-builts. It may as well be called "the str.count method"

jordanmusicandotherstuff
Автор

Bro put for abcdcdc
U will get wrong
Bcoz op will come 1
But actually 2
So this count will never work all time

yogeshp
join shbcf.ru