Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STR = ""
- stringa=input(" Inserisci stringa da analizzare ")
- strtofind=input (" inserisci la stringa cercare ")
- while stringa !="":
- if strtofind in stringa :
- ind = stringa.find(strtofind)
- for i in range (ind):
- STR = STR + stringa [i]
- for i in range (ind+1+len(strtofind),len(stringa)):
- STR = STR + stringa [i]
- print (STR)
- stringa=input(" Inserisci stringa da analizzare ")
- strtofind=input (" inserisci la stringa cercare ")
- STR = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement