Python finds substrings in strings

From , 3 Years ago, written in Python, viewed 185 times.
URL https://pastebin.vip/view/9d033331
  1. S = 'xxxxSPAMxxxxSPAMxxxx'
  2. where = S.find('SPAM')          # search for position
  3. print where                           # occurs at offset 4

Reply to "Python finds substrings in strings"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website