SHARE
TWEET

Untitled

a guest Mar 16th, 2018 448 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. STR = ""
  2. stringa=input(" Inserisci stringa da analizzare ")
  3. strtofind=input (" inserisci la stringa cercare ")
  4. while stringa !="":
  5.     if strtofind in stringa :
  6.         ind = stringa.find(strtofind)
  7.         for i in range (ind):
  8.             STR = STR + stringa [i]
  9.         for i in range (ind+1+len(strtofind),len(stringa)):
  10.             STR = STR + stringa [i]
  11.     print (STR)        
  12.     stringa=input(" Inserisci stringa da analizzare ")
  13.     strtofind=input (" inserisci la stringa cercare ")
  14.     STR = ""
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