daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s,t = input(), input()
  2. k = len(t)
  3. n = 0
  4. for i in range(0, len(s)-k+1):
  5.     if s[i:i+k] == t:
  6.         n += 1
  7. print(n)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top