string.py 91 Bytes
Newer Older
nishanth's avatar
nishanth committed
1 2 3 4
s1=input("enter main string")
s2=input("enter sub string")
count=s1.count(s2)
print(count)